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
how do you reference the variable block file formats from cobol programs
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)?
Can we redefine the field of x(200) to less than 200?
What kind of error is trapped by on size error option?
Define cobol?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Explain how to differentiate call by context by comparing it to other calls?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
what is search and searchall?what is the diffrence between them?give an best example?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is static and dynamic call in cobol?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How do u write test cases?
Explain what you understand by passing by value.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?