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



-----Message d'origine-----
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Joep Beckeringh
In your example:

CLP1
OVRDBF FILEA FILEB
PGM
CALL ILE1
CALL ILE2
CALL ILE3

etc, etc, with further calls to OPM's
RCLRSC
ENDPGM

the override is visible to all programs, as long as CLP1 is
in the call stack. When you change CLP1 to CLLE1 with
ACTGRP(*NEW), the override is visible for all programs that
use ACTGRP(*CALLER), but not for the OPM programs. However,
that can be change by changing the override to:
OVRDBF FILE(FILEA) TOFILE(FILEB) OVRSCOPE(*CALLLVL). That
changes the behaviour of OVRDBF back to the way it worked in OPM.

So, if you change CLPs to CLLEs, add OVRSCOP(*CALLLVL) to all
your overrides, and you should be fine.

I saw that too, Joep, but there would have been a lot of others to check out and I was unsure of the result. Thanks for the confirmation, I will know next time I have such a bug and only 5 minutes to fix it :-)

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.