Working Storage

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
magnum
Member
Posts: 1
Joined: Thu Dec 28, 2006 2:12 am

Working Storage

Post by magnum » Thu Dec 28, 2006 2:16 am

When a program is dynamically linked are values retained in working storage if that program is called multiple time from the same source?

thanks!

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Thu Dec 28, 2006 3:54 am

so long that the CALLed program does not have an INITIAL parm and there is no CANCEL verb associated with the CALLed program, the program is loaded by the first invocation and stays in memory until the end of the RUN-UNIT or a CANCEL verb. The CALLed module can be invoked from any member of the RUN-UNIT - for example, an I/O module to read (or write) a particular file can be CALLed (invoked) by any module and the CALLed module's WORKING-STORAGE will contain the same values present the last time the module exited.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others