Program A calls program B. Will the working storage
variables declared in program B be initialized every time
it is called by program A or will the values be retained
until the end of program A?
Answer Posted / s.rajagopalan
none of the above answer is correct.
In static call the working storage varibales is not
initialised when the sub program is called. It retains the
latest values of ws variables in the subrpogram.
In case of dynamic call if you use "cancel" stament then
the ws variables of the sub program are initialised.
if you dont use cancel statement and call the subprogram
then the latest values are retained for the WS vriables.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
IF I mention stop run in CICS what happens?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
In COBOL, what is the different between index and subscript?
What is a scope terminator give example?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
how to refer the data field?
What is inspect in cobol ?
) How do u handle errors in BMS macro
explain sorting techniques in cobol program?
Explain about different table spaces.
Have you used comp and comp-3 in your project? And how?
What is amode(24)?