15.10 - Multiple Sessions - 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

Each horizontal item that follows represents a call to DBCHCL with the function code set as in the left column.

 

Function

Description

Connect/Fetch

Same as for a single session

Initiate Request

(Session 1)

Send Teradata SQL request to the Teradata Database.

Application must set address and length of Teradata SQL request and optional using data. Application must save the Output CLIv2 Request Id.

Initiate Request

(Session 2)

Same as for session 1, probably with different data

Fetch

(Session 1 and 2)

Same as for a single session

set Session Id and DBCAREA to id of session to be used

set Request Id to id of request to be accessed

End Request

Clean up request‑related context (Stream 1 and 2)

Disconnect

(for each session)

Log off from the Teradata Database and free the session‑related control blocks