|
>Since you can't call a service program from >an OPM program, using *CALLER should be fine. I agree with the Scotts (sorry, couldn't resist!) that service programs should be *CALLER but you can indeed activate a service program from OPM and in the default activation group under these circumstances: OPM pgm call ile ag(*caller) callp proc in *srvpgm ag(*caller) Under this arrangement, the ILE program mainline and the service program all run in the default activation group. Now you can't destroy this activation group, so there won't be any issues regarding program activation after destroying the AG, so you'll probably be OK even then. If you intend to follow this pattern, may I humbly suggest that you carefully read through the ILE Concepts guide to see the differences between an ILE program compiled as DFTACTGRP(*YES) and one running in the DAG because of *CALLER. --buck
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.