× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




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 thread ...

Replies:

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

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.