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
Write the code to count the sum of n natural numbers.
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What are the access modes of START statement?
What is the difference between structured cobol programming and object alternativelyiented cobol?
) how do u code after getting data?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is comp-1 and comp-2?
Write a program to explain size error.
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
what happens if parmparameter passes zero bytes to the program
how to move the records from file to array table. give with code example
What is the difference between goback, stop run and exit program in cobol?
What the difference is between continue and next sentence?