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

The variables in the working-storage section of prog-b will
be initialized only if prog-a has given a CANCEL statement
after CALL statement. Othrwise the WS variables of prog-B
will retain the latest contents of the previous call.

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between PIC 9.99 and PIC9v99?

770


How many sections are there in data division in COBOL?

674


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

696


How to remove 2 duplicate records and copy only one using job control language?

730


What are the cobol coding sheets?

655






What is the compute verb? How is it used?

650


How do you reference the fixed block file formats from cobol programs

693


What rules are to be followed while using the corresponding options?

627


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2045


What is the Purpose of POINTER Phrase in STRING command in COBOL?

711


What are the pertinent COBOL commands?

2617


what is search and searchall?what is the diffrence between them?give an best example?

5534


How to know whether the module is dynamical or statistical?

648


What is amode(31)

712


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

687