|
1) Set on *LR on UEP module will not close files that are open by modules without *nomain-keyword. (I'm assuming that the only way to close the file on those modules is to use CALLB to exec the main procedure those modules and seton *lr).
*INLR only affects the module that you set it on in. It'll never close files in any other modules besides the one you set it in.
(However, a program compiled with ACTGRP(*NEW) will have it's files closed when the program ends, but that's not really an effect of *INLR, since it'll do that even if you end the program with LR off.)
You can call the main procedure of another module the same way you'd call any other bound procedure. With a prototype (recommended) or with CALLB (which I don't recommend)
2) Set on *LR on UEP module will close files that open by modules with *nomain keyword.
No, setting on *INLR only affects the module that you set it in.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.