Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

L/E options:called many times subroutine

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a dynamically called subroutine (CALL WS-PROG) that is called many times. On subsequent calls, the Working Storage is not initialised. I can change this by coding INITIAL on the PROGRAM-ID statement or by CANCEL WS-PROG. Is there a Link Edit parm to do this? Something to do with RENT REUS or RES. I've read the manuals on these options, but they just confuse
 
Hi Marc,

It looks like you're stuck w/the options you stated.
From a performance perspective INITIAL is preferred over CANCEL. The performance gain is substantial.

One caveat to remember is that INITIAL reinits only those fields that contain the VALUE clause. This may cause problems under some rare circumstances.

HTH, Jack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top