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 / vivek

Rajagopalan's answer is the correct one.

Refer the IBM documentation.

http://publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.
jsp?topic=/com.ibm.entcobol.doc_3.4/tpsub04.htm

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of error is trapped by on size error option?

964


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

976


What are the different data types in cobol?

1057


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2609


What are the various section in data division and briefly explain them.

920


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

1047


What is report-item in COBOL?

898


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2113


What are the cobol coding sheets?

872


Can we redefine the field of x(200) to less than 200?

1106


Whats the difference between search & search ALL?

5893


how do you reference the fixed unblock file formats from cobol programs

932


what is amode(24), amode(31), rmode(24) and rmode(any)?

895


What is the problem of ordered sequential files access?

912


What are all the divisions of a COBOL program?

905