Multiple Sessions Example - Teradata Tools and Utilities

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

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Teradata Tools and Utilities
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-11-17
dita:mapPath
oxw1641281447623.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
vfj1470443597526
Product Category
Teradata Tools and Utilities

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 database.

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

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 Input-CLIv2-connection-number to the number of the session to be used.
  • Set Input-CLIv2-request-number to the number of the request to be accessed.
End Request Clean up request-related context (Stream 1 and 2).
Disconnect (for each session) Log off from the database and free the session-related control blocks.