IMHO Running service programs with *CALLER is really important for all
service programs containing insert/update/delete procedures when working
with commitment control. (Default Commitment Scope within the STRCMTCTL
command is *ACTGRP).
Service Programs containing only generic procedures/functions such as date
functions, string functions, should run in an named activation group, so
they will only be activated once per job.
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Charles Wilt
Gesendet: Wednesday, 06.2 2013 18:22
An: Midrange Systems Technical Discussion
Betreff: Re: Starting to use ILE. Was: How to best identify if
applicationsare running in OPM mode?
On Tue, Feb 5, 2013 at 4:57 PM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:
And my advice for service programs is the same as for programs. Use
ACTGRP('MYCOMPANY').
I agree with everything except the above...
IBM recommends ACTGRP(*CALLER) for service programs...
With all the programs as ACTGRP(MYCOMPANY), the service programs will end up
there also. At least till you gain the experience and knowledge to start
using other activation groups.
At that point, 99.9% of the time, you'll still want ACTGRP(*CALLER) for your
service programs. The other 0.1% you'd want the SRVPGM to be in it's own
unique activation group.
If you start out with ACTGRP(MYCOMPANY) for your service program, it will be
all too easy to end up with a program not using ACTGRP(MYCOMPANY) making
calls into it which is a recipe for trouble.
Charles
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.