|
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-
bounces@xxxxxxxxxxxx] On Behalf Of CRPence
Sent: Monday, July 29, 2013 3:14 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: QILE activation group?
On 29 Jul 2013 11:45, Dan Kimmel wrote:
There's some vagueness in the ILE spec that I'd like to have others
comment on that's brought up by your post below.
Program A, running in system-assigned activation group 32 calls
program B for the first time and program B was compiled CRTPGM
ACTGRP(*NEW), the system will create a new activation group in your
job and call it, say, 33 and run program B in that activation group.
This much is clear from the spec.
If program B returns without setting on LR and program A or another
program operating in activation group 32 calls program B again, the
system will continue to use the copy of program B in activation
group 33. This is NOT clear in the ILE programmers guide, but I
believe it to be the case. <<SNIP>>
But I'm getting old and don't remember for sure and went to the ILE
programmer's guide to confirm and couldn't find a definitive answer.
The /new/ activation is reclaimed upon return irrespective of *INLR:
http://publib.boulder.ibm.com/infocenter/iadthelp/v6r0/topic/com.ibm.eto
ols.iseries.pgmgd.doc/c0925076156.htm
"...
_i Returning without Ending i_
...
If you call a main procedure and it returns without ending, when you
call the procedure again, all fields, indicators, and files in the
procedure will hold the same values they did when you left the
procedure. However, there are three exceptions:
* This is not true if the program is running in a *NEW activation
group, since the activation group is deleted when the program returns.
In that case, the next time you call your program will be the same as if
you had ended with LR on.
* ...
..."
--
Regards, Chuck
--
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.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.