× 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 Everyone,

I'm working with a CLLE program (PgmA), which as ACTGRP(*CALLER), that does an OVRDBF and an OVRPRTF, both defaulting the OVRSCOPE to *ACTGRPDFN, before calling an RPGLE program (PgmB) which has ACTGRP(*NEW), like this:

PgmA (activation group *CALLER)
OVRDBF
OVRPRTF
CALL PgmB (activation group *NEW)
OPEN dbf
OPEN prtf

On box A, the program is submitted from the old job scheduler (WRKJOBSCDE) and on box B, it's submitted from the advanced job scheduler (WRKJOBJS).

On box A, when PgmB runs, the overrides affect its opens as intended.

On box B, when PgmB runs, the overrides do NOT affect its opens.

The old job scheduler seems to submit the call directly; the advanced job scheduler submits a call to its own program, QIJS/QIJSCRUN, which is compiled with *DFTACTGRP. After re-reading the help for the OVRSCOPE parm on the OVRDBF command, it seems to me that PgmA should be running in the default activation group if submitted from the advanced job scheduler and that the overrides should've applied to PgmB as intended.

I have no idea what activation group is used when a program with *CALLER is submitted to batch.

If I had more time, I'd run some tests to figure this out. I fixed the problem by changing PgmA to *NEW and PgmB to *CALLER and specifying OVRSCOPE(*CALLLVL) on the overrides (belt & suspenders), but I would like to know what was going on with the activation groups in the original scenario.

*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
pdow@xxxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxxx> /

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.