|
Booth At 06:57 PM 12/6/97 -0500, you wrote: >on 12/06/97at 12:07 PM, the Great and Grand Wazir John Carr ><74711.77@compuserve.com> said: > >>The RETURN CL command just ends the program and returns to its caller. >>Just like Setting on *INLR and doing a Return opcode in RPG. > >I am still unclear then. I'd felt that setting on *INLR and also doing a >RETURN was redundant. I'd felt that a programmer would plan on one, the >other, or neither. They are redundant. I.e., once you've set on *INLR, the program will end without a RETRN. Nothing wrong with including it, tho', AFAIK. >Also, is there anything wrong with RETURNing from a program and relying >upon the closing of upstream programs to close the downstream programs? Closing upstream programs doesn't necessarily close resources in an RPG that did not end with *INLR on. This can result in files remaining open, e.g. Cheers Vernon Hamberg Systems Software Programmer Old Republic National Title Insurance Company 400 Second Avenue South Minneapolis, MN 55401 (612) 371-1111 x480 +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "MIDRANGE-L@midrange.com". | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.