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



Nathan



2009/1/6 Nathan Andelin <nandelin@xxxxxxxxx>

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.


I did try this but without success. However, when I recompile the whole
system, I will be as careful as possible to ensure that I get it right.

Many thanks

Rob



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

--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.






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.