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 / vinod babu bachina
when PROGA made a call to PROGB, if it is first time then
the execution in PROGB start from workign storage
section.suppose progA calls again PROGB then the execution
will start from procedure division only .So when we made a
second call to anu subprogram we have to intialize the
working storage section variables.otherwise second call
retains the values of first call.
| Is This Answer Correct ? | 22 Yes | 2 No |
Post New Answer View All Answers
Write down the divisions of cobol program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How many sections are there in data division in COBOL?
How to know whether the module is dynamical or statistical?
What are various search techniques in cobol? Explain.
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is the utilization of copybook in cobol?
What is the use of intialize verb?
What are the different open modes available in cobol?
how to move the records from file to array table. give with code example
What are the cobol coding sheets?
What is the difference between Global and External Variables?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
Explain how to differentiate call by context by comparing it to other calls?