|
Consider making the "top-level" or "launcher" programs use a "named" actvation group, rather than *NEW. (This could be the same as the program name.) Then, you control when it is time to force a "clean-up" of each named activation group, e.g. by issuing RCLACTGRP ACTGRP(name) from a CL program, for example.This is very much a design decision, so it really depends on your situation. And you're not the only one to suggest a named activation group. But here's my reasoning against the idea: when do you do the reclaim, and how do you know what to reclaim? Say you've got 20 menu options - is each one its own AG? When do you reclaim? Do you have to remember which one is the last one you called and don't do a reclaim if you're executing the same option? There also has to be a hardcoded list somewhere specifying which option belongs to which AG; that's one more maintenance step.
As an Amazon Associate we earn from qualifying purchases.
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.