Terminating a Session - 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

After all processing is complete for a session, an application must terminate the session by performing the following steps:

  1. Modify the DBCAREA.
    1. Set the Function to Disconnect.
    2. Set the Input CLIv2 Session Id to the Output CLIv2 Session Id obtained when the session was established.
    3. Optionally set the following:

      Message-area-pointer

      Message-area-length

  2. Call DBCHCL to perform the Disconnect function.