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

Why did you choose to work with ibm mainframe cobol programming?

850


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1954


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

897


what is the difference between COBOL2 AND COBOL390?

2721


What is the difference between next sentence and continue in cobol programing language?

951


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

865


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1883


What is cobol?

948


What is the default value(s) for an initialize and what keyword allows for an override of the default?

955


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1859


What is a scope terminator give example?

833


how to move the records from file to array table. give with code example

2430


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1238


How do you reference the following file formats from cobol programs?

908


How do define dynamic array in cobol.

857