Thanks.
I have an interactive program A running in DFTACTGRP at the start.
Depending on a choice of client type by the user, pgm B gets called in the named ACTGRP for that type of client. Pgm B does nothing but call pgm C so it is activated in the same group (ACTGRP *CALLER). I was worrying about pgm C calling anything outside it's ACTGRP.
-----Message d'origine-----
De : rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Simon Coulter
Envoyé : mardi 24 mars 2009 12:42
À : RPG programming on the IBM i / System i
Objet : Re: OPM called by program running in a named activation group
On 23/03/2009, at 9:56 PM, David FOXWELL wrote:
I have a program running in several named ACTGRP. I need to call an
RPGIII. I haven't tested, but I présume that as the RPGIII is
conditioned to return with RT on, it will only run the *INZSR the
first time. Even if LR was on, can I be sure that the RPGIII or its
callees don't leave open anything else that is not meant to be shared
between the different ACTGRP?
Your description is unclear.
1) Do you mean you have a program running in different activation groups within the same job?
2) Or do you mean you have a program running in a named activation group in multiple jobs.
I don't really see how you have arrived at 1) unless you have something like:
In job Q:
PGMA running in ACTGRP X
calls PGMZ running in ACTGRP *CALLER
calls RPGIII program running in DFTACTGRP Also in job Q:
PGMB running in ACTGRP Y
calls PGMZ running in ACTGRP *CALLER
calls RPGIII program running in DFTACTGRP
If so that's just bad design. Best work-around would be to convert the RPGIII program to RPG IV and run in *CALLER.
For 2) separate jobs are used so I don't see the issue.
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 / \
--------------------------------------------------------------------
--
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.