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
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
IF I mention stop run in CICS what happens?
How to print 10 to 1 if the input have only 10 digit number?
What is the problem of ordered sequential files access?
What is inspect in cobol ?
What is redefines clause in COBOL?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Discuss about changing dataset name in proc.
How arrays can be defined in COBOL?
For rewrite, why is it mandatory that file needs to be opened?
What is the difference between goback, stop run and exit program in cobol?
how do you reference the esds vsam file formats from cobol programs
What are different data types in cobol?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue