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



Hi Joel, et. al. -

>For a service program that you need to release
>all resources when it ends, *CALLER is a good
>choice, providing the calling program runs in a
>named activation group that ends when the program
>does.  If you have a lot of jobs running in QILE,
>you don't have the same cleanup options you would
>with a more restricted activation group.  Depends
>on your scoping requirements, though.  The important
>thing is that QILE is only a name for an activation
>group, it's not a system object.

If you want automatic cleanup, why use a named activation group at all???
Use *NEW for the outermost program and *CALLER for everything inside.  When
the outermost program ends, the system will automatically close any files
that were left open and destroy the activation group.

Personally I *NEVER* use named activation groups.  Getting back to the
H-spec copy members, I have three ... HNEW, HCALLER, and HSRVPGM.  The first
two are for *PGMs, specifying ACTGRP(*NEW) and ACTGRP(*CALLER) respectively.
The third is for service programs and specifies ACTGRP(*CALLER).

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