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 / nagesh

Well, it depends on the type of call u r making, if it's
dynamic call working storage variable will be initialized
every time automatically.
But if it's static call u can use either 'cancel' or
'is initial' .

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between array and sub-script ?

1154


What is the difference between Call and a Link?

692


Difference between cobol and cobol-ii?

698


Are you comfortable in cobol or jcl?

633


What is the difference between comp and comp-3?

692






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?

6794


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17016


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1221


) what is the difference between AID and HANDLE AID?

1627


Write a program to explain size error.

667


What is link edit in cobol?

730


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

724


How can you get the ksds file records into your cobol program?

636


what is the difference between COBOL2 AND COBOL390?

2441


What is the usage of comp fields in cobol?

646