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



RPG resolves a pointer to the program it calls the first time it calls the program. It does not re-resolve the pointer on subsequent calls. One way to work around this is to have an RPG wrapper program that returns with *INLR on. The RPG wrapper then calls your CLLE, and will resolve the pointer to the CLLE program each time it is called, thus picking up the one highest in the library list...

Crispin.

----- Original Message ----- From: "David FOXWELL" <David.FOXWELL@xxxxxxxxx>
To: "RPG programming on the IBM i / System i" <rpg400-l@xxxxxxxxxxxx>
Sent: Friday, February 20, 2009 8:58 AM
Subject: Problem with duplicated program names


Hi all,

I'm hoping someone can help with this problem.

I have an RPGLE that calls a CLP :
C CALL 'MyCLP' // This does a CHGLIBL

Then
C CALL 'MyCLLE' // MyCLLE exists in several libraries.


When I call MyCLLE a second time, it's the first instance of MyCLLE that is called, even if it is no longer in the library list.

How do I get my RPGLE to call the first object called MyCLLE in the library list after each CHGLIBL?


Thanks
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





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.