Multiple Session Example - Call-Level Interface Version 2

Teradata® Call-Level Interface Version 2 Reference for Workstation-Attached Systems - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Call-Level Interface Version 2
Release Number
20.00
Published
January 2024
Language
English (United States)
Last Update
2024-05-14
dita:mapPath
bmn1691484839905.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
fvz1470444150352
Product Category
Teradata Tools and Utilities

Each horizontal item in the following table 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.
A Connect and Fetch must be done for each session.
Initiate Request (Session 1) Send Teradata SQL request to the database. Application must set address and length of Teradata SQL request and optional using data. DBCHCL adds response parcel and sends request. Application must save the output request and output session identifiers.
Initiate Request (Session 2) Same as for session 1, probably with different data.
Fetch (Sessions 1 and 2) Same as for a single session:
  • Set DBCAREA. header. logsessid to id of session to be used.
  • Set DBCAREA input session id of session to be used.
  • Set DBCAREA input request id of request to be accessed.
End Request Clean up request-related context. (Stream 1 and 2)
Disconnect (for each session) Log off the database and free the session-related control blocks.