Hello Barbara :)

In V6R1 this changes in two possible ways. 1) A module can be defined to have a non-cycle main procedure, that can only be a program-entry procedure (MAIN keyword).

Do you REALLY mean that a procedure defined with the MAIN keyword can only be a program-entry procedure? Or is it just a main procedure with no cycle? Surely CRTPGM won't give you an error if you have a procedure defined with MAIN that isn't the UEP?

2) A procedure can have its own local files; even if it's a cycle module, the local files have their own rules about when they get closed, nothing to do with LR: automatic files get closed when the procedure returns, and static files never get closed.

Static files NEVER get closed? Never ever? Not even when the activation group ends? Or the job ends? Or during an IPL? Or when you wipe your DASD clean and reinstall from scratch? How about when your system is vaporized by a ray gun from a little green alien from outer space? Even then the files stay open?

Am I taking you too literally? Heh.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].