On 10/28/2015 11:37 AM, Jeff Young wrote:
All,
For an ILE program with ACTGRP(*CALLER) called from *DFTACTGRP, what
activation group does it run in?
If the ILE program is RPGLE and ends with *INLR = *On, do all files get
closed and record locks released?
If an RPG program ends with *INLR = *ON, then all files get closed and
record locks released, independent of the activation group.
To be more precise, if the program has more than one module, setting on
*INLR in the main module would only affect files and record locks in
that module. If other modules had files open, they would stay open until
the activation group ends.
- If the program is in actgrp *NEW, the actgrp ends when the program ends.
- If the program is in *CALLER called from the command line, the actgrp
ends when the job ends.
- Otherwise, for a named activation group, the actgrp ends when it's
reclaimed, and also sometimes when a program in the actgrp ends with an
unhandled exception.
As an Amazon Associate we earn from qualifying purchases.
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.