Handle an abnormal termination exit.
Use the HANDLE ABEND command to activate, cancel, or reactivate an exit for abnormal termination processing. You can suspend the command by using the PUSH HANDLE and POP HANDLE commands. See 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.
If LABEL is specified, the addressing mode and execution key used are those of the program that issued the HANDLE ABEND command.
If PROGRAM is specified, the addressing mode is defined by the way the program is link-edited and the execution key is specified by the EXECKEY option on the resource definition of the program.
If a COMMAREA has been established, it will be passed to the specified PROGRAM. Where more than one application program was involved in the task, the COMMAREA that is passed to the abend exit is the COMMAREA of the program that issued the HANDLE ABEND command. This might not be the COMMAREA of the program in which the abend occurred.
If a current channel exists, it will be accessible from the specified PROGRAM.
You cannot use this option for AMODE(64) assembler language, C, C++, or PL/I application programs.
The program named in this option should always terminate with an abend, except when handling abends generated as a result of application program logic.
This option is usually issued by an abnormal termination exit routine.
Default action: terminate the task abnormally.
Default action: terminate the task abnormally.
EXEC CICS HANDLE ABEND
PROGRAM('EXITPGM')