Cleaning Up CLI - 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

DBCHCLN is the CLI routine used to clean up all CLI memory. The following processes take place when the application program no longer needs to use the database.

Application

The application calls DBCHCLN. Calling DBCHCLN should be the last CLI call that the process makes. See DBCHCLN for more information.

DBCHCLN

A dummy DBCAREA is allocated and the DBFDSC function is invoked repeatedly for each session opened by the application until all the sessions are logged off or an error occurs. An error or success message is then returned to the application.

Application

If the return code is not normal, the application makes the appropriate changes and re-submits to DBCHCLN. Otherwise, the application’s ties to the database are gone.