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



Dave:

The library list is an attribute of the job, not an attribute of each activation group.

It is fairly trivial to create a simple test to observe this. Just create one or two small CLLE programs that change the library list, and create each one to run in its own named AG. For example:

member AG1:

PGM
/* CRTBNDCL PGM(QGPL/AG1) DFTACTGRP(*NO) ACTGRP(AG1) */
ADDLIBLE QTEMP
MONMSG CPF0000
ENDPGM

member AG2:

PGM
/* CRTBNDCL PGM(QGPL/AG2) DFTACTGRP(*NO) ACTGRP(AG2) */
RMVLIBLE QTEMP
MONMSG CPF0000
ENDPGM

To test:

1. run DSPJOB OPTION(*LIBL)
2. run CALL PGM(QGPL/AG1)
3. runDSPJOB OPTION(*LIBL)
4. run CALL PGM(QGPL/AG2)
5. runDSPJOB OPTION(*LIBL)

Repeat steps 2 through 5 as often as desired to convince yourself of what is going on.

Activation groups are mainly about controlling the scope of resources, especially open files and open data paths and dynamically allocated storage. Study the ILE Concepts manual (SC41-5606) for more details.

I think you will need to use group jobs to achieve what you are describing.

Hope that helps,

Mark S. Waterbury

> On 7/24/2012 8:55 AM, Dave wrote:
Hi,

Been looking at the possibilities of running a program using a different
library list than the caller. Particularly as the program is a large OPM
calling lots of others all copybooked in, I've been looking at TFRGRPJOB. I
have to submit my analysis, and I'm pretty sure I'll be told to convert
everything to ILE and use an ACTGRP to keep things isolated from the
calling program. I'm hard put to think of an advantage of running the
program in an activation group rather than a group job. Here's one: when
using STRDBG you can step into the called program.
Any more?
Thanks!


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.