Then I'd suggest using *CALLER on the CRTPGM command - when you create MAIN. That's the easiest way to ensure that RPP and MAIN are using the same activation group.

Nathan.


-----Original Message-----
Hi Nathan,

I am sure that a new instance of MAIN is activated but equally sure that the
existing instance of RPP is re-used. In RPP, all my variables are correct,
but in MAIN, my switch to show that it has already been initialised, is OFF
on the second call and all the variables need initialising.

It is quite likely that I don't really understand activation groups as I
have never had a need for them before. I will spend more time on these
unless someone comes up with a better idea.

Many thanks

Rob

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.