At which situation we need to use the push and pop
conditions...pls tell me with exampls.

Answer Posted / santy

If one programe call the any subprogram within it. Then in
SUB program we use PUSH command to sustained all the Handle
conditions of main program, and before the control giving
back to main program we use POP command to reactivate all
the sustained Handle conditions of Main program.

Use of PUSH and POP conditions is to sustained all the
Handle error conditions in Subprog.

Exaples :- Prog A

EXEC SEND....END-EXEC
EXEC HANDLE LENGERR(LABEL1)...
EXEC RECIVE..END EXEC.

CALL PROG B
EXEC SEND....END-EXEC


Prog B
EXEC PUSH
EXEC HANDLE
EXEC POP
EXEC SEND ..
EXEC RETRUN.

in the above exp, when the control comes to at prog B then
all the HANDLES error condtions of Prog A in sustained
using PUSH condition and before control giving back to prog
A all the sustaineded handle error conditons are activated
using the POP condition.

Is This Answer Correct ?    31 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define the term transaction routing?

563


Explain the difference between the xctl and link commands?

517


Particular area has been affected in cics screen, what is the process to find?

8539


Explain how many exceptional condition can be given in a handle condition?

533


Explain the primary function of the processing program table (ppt)?

567






Explain the difference between using the read command with into option and set option?

556


When would you use abend command?

585


Explain how do you delete item 3 in a five-item tsq?

528


Explain the difference between a physical bms mapset and a logical bms mapset?

563


Explain the use of DCT ?

660


Can you define ppt and what are its uses?

621


Explain the difference between start and xctl?

562


Explain how and where is the twa size set?

571


What is the difference between SEND MAP DATAONLY and SEND MAP MAPONLY ?

718


Explain how pa key is different from pf key?

650