17.10 - Return Code - Call-Level Interface Version 2

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

Call-Level Interface Version 2
Release Number
October 2021
Last Update
Content Type
Programming Reference
Publication ID
English (United States)
Last Update

Usage Notes

The Return Code field specifies the state of the call as known by DBCHCL and MTDP.

Language Variable Name
C: DBCAREA.H: return_cd
Routine Action Taken
DBCHINI: writes
DBCHCL: writes
Used by Action Taken
application program reads

After regaining control from DBCHCL, the application program uses Return Code as the first indicator (initial status) of the success of the call.

A return code of zero indicates the call is successful as far as CLI and MTDP know. It does not imply the call is successful on the database computer. The application program determines that by examining the first parcel in the response.

The return code from a call to DBCHCL is output as the value in Return Code in the DBCAREA, the value in Return Code in the parameter list of DBCHCL, and the returned value of the DBCHCL function. The return code is identical in all three places.