Usage Notes
The Return Code field specifies the state of the call as known by DBCHCL and MTDP.
Language | Variable Name |
---|---|
COBOL: | DBCAREA-RETURN-CD |
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.