What it means
RESP value 0 means the command worked. EIBRESP is 0 and there is no condition to handle.
Programs normally test for NORMAL first and treat everything else as an exception to deal with.
Typical causes
- The command did what was asked.
How to fix it
- No fix needed.
- Always compare against DFHRESP(NORMAL) rather than the number 0, so the code reads clearly.
Example
Illustrative only; names and values are invented.
IF WS-RESP NOT = DFHRESP(NORMAL)
PERFORM 9000-HANDLE-ERROR
END-IF