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


Please Help Members By Posting Answers For Below Questions

Can you please let me know the centre name of INS certification in Kolkata.

1708


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

694


i want a program using by if, evaluate , string, unstring, perform, occurs?

4037


Explain the configuration section of a cobol program with examples of syntax.

648


What is perform what is varying?

695






State the various causes of s0c1, s0c5 and s0c7.

656


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

667


Define cobol?

854


What kind of error is trapped by on size error option?

733


Can we change the password using ALTER? anyone tried and changed?

1536


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1895


What is the utilization of copybook in cobol?

648


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1907


how do you reference the ksds vsam file formats from cobol programs

647


What are the different types of condition in cobol and write their forms.

649