|
-----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.
As an Amazon Associate we earn from qualifying purchases.
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.