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




On 28/05/2008, at 7:17 PM, David FOXWELL wrote:


-----Message d'origine-----
De : rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l- bounces@xxxxxxxxxxxx] De la part de Simon Coulter
The service program itself has a copy of the module. The program has a reference to the module via the service program.

But the call isn't the same as from one OPM to another, isn't it.

Correct. It's not the same. *PGM calling *PGM is dynamic program call. *PGM calling *SRVPGM, *SRVPGM calling *SRVPGM (and *MODULE calling MODULE although that's not really what happens) are all bound calls. Bound calls have two flavours: bind-by-copy and bind-by- reference. I've already explained that to you.


-----Message d'origine-----
De : rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l- bounces@xxxxxxxxxxxx] De la part de Takken, Cor
the binding is done at program start and will not be modified during the running of the program (as true dynamic calls are bound, or rather resolved, at every usage).

If the binding is done at program start, I should be able to delete the service program and my program will continue to run, right?

Wrong! You will have a learning experience if you attempt this. Binding is resolved at compile-time for bind-by-copy. In this case you can delete the module and the call with still work because there is a copy of the module inside the compiled object.

For bind-by-reference there is a check at compile-time that all references can be resolved and a further check is performed at run- time. Does the *SRVPGM exist, are you authorised to it, does the signature in the *PGM match the signature in the *SRVPGM, and all *SRVPGMs referenced by a *PGM or *SRVPGM are activated. If you delete the *SRVPGM you will not be able to invoke the calling *PGM (except on VRM610 if you defer *SRVPGM activation). Try it.


I think what I really need is the dummies' guide to ILE!

It's called the ILE Concepts Guide. It's well worth a read. Also the Sourcerer's Guide RedBook. Plus the archives of this list and the Midrange list have done this topic to death.

Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists

http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------




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.