Interview Questions   Tutorials   Discussions   Programs   

CICS - At which situation we need to use the push and pop conditions?




294
views
asked mar August 19, 2014 12:21 PM  

At which situation we need to use the push and pop conditions?


           

1 Answers



 
answered By Mswami   0  
PUSH HANDLE:
Suspends the current effect of HANDLE CONDITION, IGNORE CONDITION, HANDLE ABEND and HANDLE AID commands.

POP HANDLE:
Reinstates the effect of HANDLE CONDITION, IGNORE CONDITION, HANDLE ABEND and HANDLE AID commands to what they were before the previous PUSH HANDLE was called.

CICS also keeps a table of conditions for each PUSH HANDLE command which has not been countermanded by a matching POP HANDLE command.

When each condition occurs, CICS performs the following sequence of tests:

  • If the command has the RESP or NOHANDLE option, control returns to the next instruction in your application program. Otherwise, CICS scans the condition table to see what to do.
  • If an entry for the condition exists, this determines the action.
  • If no entry exists and the default action for this condition is to suspend execution:
  1. If the command has the NOSUSPEND or NOQUEUE option, control returns to the next instruction.
  2. If the command does not have one of these options, the task is suspended.
    • If no entry exists and the default action for this condition is to abend, a second search is made, this time for the ERROR condition:
    1. If found, this entry determines the action.
    2. If ERROR cannot be found, the task is abended. You can choose to handle abends.
  • flag   
       add comment

    Your answer

    Join with account you already have

    FF

    Preview

     Write A Tutorials
    Online-Classroom Classes
    www.writeabc.com


      1 person following this question

      Question tags

    cics × 1

    Asked 2 years and 3 months ago ago
    Number of Views -294
    Number of Answers -1
    Last updated
    3 years and 3 months ago ago

    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