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



This is good, it made me look up activation group deletion.  TFM (RPG
Reference) says:
*******************
When an activation group is deleted, its resources are reclaimed. The
resources include static storage and open files. A *NEW activation group is
deleted when the program it is associated with returns to its caller.

Named activation groups (such as QILE) are persistent activation groups in
that they are not deleted unless explicitly deleted or unless the job ends.
The storage associated with programs running in named activation groups is
not released until these activation groups are deleted.
**************************
There's more of a difference between *NEW and a reg named activation group
than I thought.  For batch jobs the difference can be smaller than for
interactive jobs.  It's terrifying how much more you can learn if you
actually read the book. <g>

BTW, I don't know what I was thinking about multiple instances of the same
(user named) activation group.  Even I know that's wrong.



> -----Original Message-----
> From: Sims, Ken [mailto:KSIMS@SOUTHERNWINE.com]
> Sent: Friday, September 21, 2001 2:32 PM
> To: rpg400-l@midrange.com
> Subject: RE: H ActGrp('QILE') vs H ActGrp(*caller)
>
>
> Hi Joel -
>
> >*NEW is a named activation group.  The system just picks
> >the name for you.
>
> Well, excuse me for not using the full term "user-named
> activation group"!
> <G>
>
> >I do use it for exactly the circumstances we're talking
> >about because it pretty much guarantees a unique identifier.
> >I would use a name if I was sure that the job would never,
> >never, never have more than one instance at a time,
>
> The job will never have more than one instance of a
> user-named activation
> group at a time.  Once the activation group is created, anything that
> specifies that activation group will run in that same
> activation group until
> it is destroyed.
>
> >just because I like human readable names.  I'd have to be
> >real sure, though. <g>
>
> If you use a user-named activation group, it will not be automatically
> destroyed when no longer in use; a system-named activation
> group will be.
> To me that is a significant difference and automatic cleanup
> is much more
> important than having a meaningful name.  (The system-named activation
> groups have human readable names, they just aren't
> particularly meaningful.
> <G>)
>
> Ken
> Southern Wine and Spirits of Nevada, Inc.
> Opinions expressed are my own and do not necessarily
> represent the views of
> my employer or anyone in their right mind.
> _______________________________________________


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.