HANDLE ABEND is used to activate, cancel, or reactivate an exit for abnormal termination processing. You can suspend the command by means of the PUSH HANDLE and POP HANDLE commands as described in Using PUSH HANDLE and POP HANDLE commands .
When a task terminates abnormally, CICS searches for an active abend exit, starting at the logical level of the application program in which the abend occurred, and proceeding to successively higher levels. The first active abend exit found, if any, is given control.
The HANDLE ABEND command cannot intercept abends that are issued with the CANCEL option. Some internal abends generated by CICS are issued with the CANCEL option, for example the ASPx or APSJ abend codes.
When the label specified in a HANDLE ABEND LABEL command receives control, the registers are set as follows:
COBOL: Control returns to the HANDLE ABEND command with the registers restored. COBOL GO TO statement is then executed.