Handles an abnormal termination exit.
Sintaxe

- Nota:
- LABEL not supported for C, C++ or PL/I programs.
Descrição:
HANDLE ABEND handles an abnormal termination exit.
This command is used to activate, cancel, or reactivate an exit for abnormal termination processing.
For COBOL programs only, you can suspend (and later restore) the effect of HANDLE ABEND by means of the PUSH HANDLE and POP HANDLE commands.
The HANDLE ABEND command cannot intercept all abends.
Some abends such as any that result from a severe CICS internal error cannot be handled; and some abends cause the application server that is running the
application program to terminate without giving the program a chance to handle the abend.
For COBOL programs, when the label that is specified in a HANDLE ABEND LABEL command receives control, control is transferred to it with all storage intact.
The following example shows how to establish a program as an abnormal termination exit: