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



On 7/26/05, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx> wrote:
> 
> A *NEW activation group ends as soon as the program that created it ends.
> So, if you compile your RPG program with ACTGRP(*NEW), the activation
> group (and everything in it) will be destroyed when your program does a
> RETURN (no matter if LR is on or off)
> 
> That's why everything gets cleaned up when you haven't turned LR on.


That makes sense. I can see where using ACTGRP(*NEW) is bad for programs 
that are called multiple times (once per record, etc). 

Let me ask you this. If you have a program, say an inquiry program. This is 
called by a user, and is an interactive inquiry, that optionally generates a 
printout. A user may call this program several times in a day, but it would 
never be called repeatedly, in a loop. If I create this program using 
ACTGRP(*NEW), each time the user exits the program, cleanup of open files, 
storage, etc. is automatic, and occurs regardless of LR. If I create the 
program in a named activation group, then will subsequent calls to the 
program perform better than subsequent calls to a ACTGRP(*NEW) program? 



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.