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


Please Help Members By Posting Answers For Below Questions

Write the code to count the sum of n natural numbers.

932


what is the use of outrecord?

1972


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

938


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17516


Write a program to enter and display the names of students in a class using the occurs clause.

927


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

867


What is the difference between Call and a Link?

892


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2288


In COBOL, what is the different between index and subscript?

950


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

913


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

909


What is the difference between external and global variables in COBOL?

1046


What are declaratives and what are their uses in cobol?

943


How do get the result of your program directly on your pc?

2073


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5426