Testing for RESPONSE and REASON
To evaluate the results of an API command, you code the RESPONSE and REASON options on the command and follow the command immediately with a test of the returned values.
The RESPONSE and REASON options return numeric values. Different built-in functions are provided for converting and testing the numeric response and reason values in the command-level interface and the REXX run-time interface.