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

date: Tue, 11 Sep 2007 15:10:39 -0500
from: Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
subject: Re: Tell me more about activation groups (was Re: Issue with
ovrprtf/dltovr (is this an activation group issue))

It might be worth noting that your program is never removed from memory
if the activation group is never reclaimed. (This is true with
ACTGRP(*CALLER) as well -- except in that case, the programs are running
in *DFTACTGRP which Cannot be reclaimed, and therefore they always stay
in memory until the job ends.) This speeds up subsequent calls, but
also means that if you recompile the program, your batch job will
continue to re-run the old copy, and won't pick up the changes.

Thanks for the good explanation.
So why then do batch & interactive jobs behave differently?
With a batch job, the program is in memory and is released when the job
ends.
With an interactive job, it is in memory until the program ends. If one
compiles the program and then calls the program, the changed program is
called, not the one in memory - even though the activation group is still
active.

Hmmmm... I'm gonna have to test this... submit CL pgm, call pgma, delay 1
min, compile pgma meanwhile and see what happens.

Regards

Kit
(Still learning, after all these years)







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.