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



James H H Lampert wrote:

Is there by any chance a way, short of making all the
files *USROPN, to wedge some code into an RPG program to
alter the library list before the files open?
...
If nothing else, would some sort of ILE CL "leader" module
be possible, that would force the library list into the
required shape, then call the RPG main with the unaltered
trigger parameters? (I'm still not particularly up on what
can and can't be done with ILE CL)


If you get an implicit open error, you can't get control within the RPG
program.  So you have to either set up the library list before you call
the RPG program, or you have to use USROPN.

It would work fine to use a CL module that calls the RPG module.  The CL
would define its parameters the same as the RPG; it would do the libl
business and then pass the parameters through to the RPG module (use
CALLPRC instead of CALL in the CL, to call the RPG procedure).

Or you could even keep the RPG program as a program, and have a CL
trigger program call through to your RPG program.

(I think that it would be easiest by far to just make the files USROPN.)


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.