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

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

1 Modify the DBCAREA.

a Set the Function to Disconnect.

b Set the Input CLIv2 Session Id to the Output CLIv2 Session Id obtained when the session was established.

c Optionally set the following:

  • Message Area Pointer
  • Message Area Length
  • 2 Call DBCHCL to perform the Disconnect function.