× 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 Jason,

I'm sending a copy of my reply back to the RPG400-L mailing list, since it's where this thread started, and I feel it's important for follow-ups to go there as well. That way, everyone has a chance to learn, and everyone has a chance to make comments.

In keeping your activation group open, lets say the program is called
again, what happens with the activation group? Does it get closed or will
it try to reclaim the activation group?

ILE programs are loaded into memory (the technical term for that is called "activation") into an activation group. The program then remains in memory until the activation group is reclaimed (i.e. deleted from memory.)

Let's say you compile your program with ACTGRP(JASON). The first time this program (or any other program with the same activation group name) is called, the activation group gets created in memory. Your program is then loaded from disk into memory into this activation group. It's then run.

On subsequent calls (assuming you haven't reclaimed the activation group) the program is already loaded into memory, and therefore runs very fast because it doesn't have to be re-loaded into memory.

If you're writing an RPG program, and the program ended with *INLR off, the files can be left open from call to call, which speeds things up even further since the files don't have to be closed and re-opened on every call.


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.