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
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What are the different data types in cobol?
) How do u handle errors in BMS macro
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is the difference between external and global variables in COBOL?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
Which division and paragraphs are mandatory for a COBOL program?
What is perform what is varying?
How do you reference the fixed block file formats from cobol programs
What are the access modes of START statement?
Can a Search can be done on a table with or without Index?
What the difference is between continue and next sentence?
How you can read the file from bottom?