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



Scott, 
I apologize.  I didn't mean to put words in your mouth.  My simple questions
is: 

 Are there any potential problems with  changing all our RPG programs to
ACTGRP(*NEW) ?  

Here's our situation.  We use the CRTDUPOBJ technique (prior to RPG IV/ILE)
to prevent recursive call errors.  We took the first step to start using RPG
IV but only compiling our RPG IV objects using CRTBNDRPG.    We've had no
problems with CRTDUPOBJ on objects created using CRTBNDRPG.  We still have
to create a CL wrap on those programs where we anticipate a recursive call
to have the CRTDUPOBJ logic.   New recursive calls creep up all the time.  I
read that with ACTGRP(*NEW) you can avoid the recursive call problem.   

It sounds like the answer is:  Without an understanding of how AG works and
without further analysis,  it would not be a good idea to change the default
on CRTBNDRPG to ACTGRP(*NEW).      

 -----Original Message-----
From:   Scott Klement [mailto:klemscot@xxxxxxxxxxxx] 
Sent:   Tuesday, March 11, 2003 2:57 PM
To:     RPG programming on the AS400 / iSeries
Subject:        RE: CRTDUPOBJ an ILE program


On Tue, 11 Mar 2003, Mike McKinney wrote:
>
> Scott, thanks for you response.  Sounds like the short answer is No, you
> don't want to compile all your programs with ACTGRP(*NEW).  If every
program
> started it's own activation group, you could use considerably more memory
> and get unintended results (loss of overrides... etc).
>

That's not what I said at all...     The "loss of overrides" business is
somewhat true, but only until you learn how activation groups work, and
do your overrides using the new paradigm.

The rest is completely off-base.   I agree wholeheartedly with what
Barbara and Joe have said, use ACTGRP(*NEW) for the first program called,
and ACTGRP(*CALLER) for each program that's called by that program.


_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

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.