15.10 - Output CLIv2 Connection Id - Call-Level Interface Version 2

Teradata Call-Level Interface Version 2 Reference for Mainframe-Attached Systems

prodname
Call-Level Interface Version 2
vrm_release
15.10
category
Programming Reference
featnum
B035-2417-035K

Output TDP Path is an eight byte field that specifies the route used to send session data to and from the Teradata Database. On mainframe-attached systems, this is the TDPid. This information is also available using the Database‑access‑path DBCHQE query.

 

In this language...

The variable name for Output CLIv2 Connection Id is...

COBOL

DBCAREA‑O‑SESS‑ID

PL/I

O_SESS_ID

C

o_sess_id

IBM Assembler

DBCOCONN

 

This routine...

Does this for Output CLIv2 Connection Id...

DBCHINI

writes

DBCHCL

writes (CON)

 

Output CLIv2 Connection Id is used by...

To...

applications

read

After the application regains control from a call to DBCHCL for the Connect function, the logical session id is available in the DBCAREA in Output CLIv2 Connection Id.

Before using the DBCAREA again to call DBCHCL for the session, the application must copy the value to Input CLIv2 Connection Id.

Compare with “Output TDP Session Id” on page 132.

Note that both the TDP and CLIv2 have a number for each session, and that the two numbers are not identical.