Return Code is a four byte field that specifies the state of the call as known by DBCHCL and TDP.
In this language... |
The variable name for Return Code is... |
COBOL |
DBCAREA‑RETURN‑CD |
PL/I |
RETURN_CD |
C |
return_cd |
IBM Assembler |
DBCRCODE |
This routine... |
Does this for Return Code... |
DBCHINI |
writes |
DBCHCL |
writes |
Return Code is used by... |
To... |
applications |
read |
Applications should access the return code using a more reliable method than using the Return Code in the DBCAREA.
Some recommended options include the following:
After regaining control from DBCHCL, the application can use the Return Code as the first indicator (initial status) of the success of the call, from the point of view of CLIv2 and the TDP.
For more information on return codes, see “Return Code” on page 150.