The default option of the EVALUATE subcommand retrieves an unsigned binary number from a dump and uses that number as its return code. The number in the dump may span 1 to 4 bytes.
In a CLIST, the subcommand following EVALUATE can refer to the return code with the CLIST variable &LASTCC. EVALUATE has little use other than in CLISTs because the return code is made available by the CLIST variable &LASTCC.
Each subcommand in a CLIST resets &LASTCC. Thus, the data retrieved by EVALUATE must be examined or moved from &LASTCC before another subcommand in the CLIST overlays it.
Code | Explanation |
---|---|
12 | Severe, requested storage cannot be retrieved. |
16 | Terminating, an error condition from a called service routine forced an early termination. |
other | Successful completion, uses the requested data as a return code. |