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



Which is true of every program object too and always has been. While technically true it really has no practical relevance in most cases, particularly when the impact of AGs on OVR scope etc. is concerned.


On 2013-07-25, at 4:44 AM, whatt sson <whattssonn@xxxxxxxxx> wrote:

There's a difference between a "copy" and an "activation".
There is always only one copy of a (service) program, i.e. the CODE, loaded
in memory.
A (service) program can have many "activations", i.e. the DATA, depending
on AG (and job).
In David's example there would be one copy of the service program, and two
activations.


On Thu, Jul 25, 2013 at 12:42 AM, Jon Paris <jon.paris@xxxxxxxxxxxxxx>wrote:

Each job certainly gets a new copy Gary - it may even get more if the
SRVPGM is *CALLER.

David said that the SRVPGM is the one calling the *NEW PGM and I read it
as saying that it was running in QILE and assumed it was specified to do so.

Now that you raise the question I realize that the esteemed Mr. Gibbs did
not provide sufficient information to answer the question definitively.

The number of copies of the SRVPGM will depend upon its AG attribute. If
it is specified as QILE - then as long as there is an active invocation of
the SRVPGM then it will be used. There would however be a new copy created
if the SRVPGM had an AG attribute of *CALLER.


On 2013-07-24, at 5:12 PM, Gary Thompson <gthompson@xxxxxxxxxxx> wrote:

I am very interested in this topic because I don't have a good
understanding of service programs and activation groups.

Jon's answer surprises me because I have thought each system i
job receives a "new" copy of a service program, and that activation
groups are "a job within a job", and therefore expected the >new<
activation group of the external RPG program would get a "new"
copy of the service program.

Thanks for the opportunity!


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:
midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jon Paris
Sent: Wednesday, July 24, 2013 2:15 PM
To: Midrange Systems Technical Discussion
Subject: Re: Activation group quandaries


On 2013-07-24, at 4:08 PM, David Gibbs <david@xxxxxxxxxxxx> wrote:

My questions are:

When the service program calls the external RPG program, should the
activation group change from QILE to a new activation group?

Yes - it will change to *New

When the external program calls back into the service program, will a
new copy of the service program be loaded ... or will it call back into the
original service program that invoked the external program?

Original copy should be used.

Jon Paris

www.partner400.com
www.SystemiDeveloper.com




--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com




--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com





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.