HANDLE ABEND

Top  Previous  Next

This command is used to activate, cancel or reactivate an exit for abnormal termination processing. The command can be suspended by means of the PUSH and POP commands as described below.

HANDLE  ABEND
[ PROGRAM(pgmname) ]
[ LABEL(label) ]
[ CANCEL ]
[ RESET ]

Options

CANCEL

specifies that a previously established exit at the logical level of the application program in control is to be canceled.

LABEL(label)

specifies the program label to which control branches if abnormal termination occurs.

RESET

specifies that an exit canceled by a HANDLE ABEND CANCEL command, or by CICS, is to be reactivated.

PROGRAM(pgmname)

specifies the name of the program to which control is to be passed if the task is terminated abnormally. If this program has not already been defined, the program will be autoinstalled in the event of the abend condition being raised.