Interview Questions   Tutorials   Discussions   Programs   

CICS - What is the EXEC CICS HANDLE ABEND?




764
views
asked mar August 18, 2014 11:57 AM  

What is the EXEC CICS HANDLE ABEND?


           

1 Answers



 
answered By Mswami   0  
HANDLE ABEND:

Handle an abnormal termination exit.

Syntax:

HANDLE ABEND

                 .-CANCEL--------.  
>>-HANDLE ABEND--+---------------+-----------------------------><
                 +-PROGRAM(name)-+  
                 +-LABEL(label)--+  
                 '-RESET---------'  

Conditions: NOTAUTH, PGMIDERR (PROGRAM only)

This command is threadsafe.

Description:

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.
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert