|
Frank, There have been several good threads here about activation groups and their mechanics. I think there were some links to these discussions in the FAQ. In a nutshell, think of the DFTACTGRP (or DAG as it is known) as "OPM compatibility mode" for ILE programs. As long as you don't use ILE specific enhancements (such as procedures) you can use the DFTACTGRP option to simplify your compile and runtime environment. Ultimately this question boils down to support for local storage. Procedures allocate storage differently than programs, which is why the compiler wants to insist that we utilize activation groups to manage these memory spaces. Nothing magic, just trying to make things follow the rules. FWIW, activating things in the DAG is really not a major problem until you try to reclaim resources. Eric DeLong Sally Beauty Company MIS-Project Manager (BSG) 940-898-7863 or ext. 1863 -----Original Message----- From: fkany@xxxxxxxxxxxxxxxxxx [mailto:fkany@xxxxxxxxxxxxxxxxxx] Sent: Monday, April 21, 2003 11:45 AM To: CN=RPG programming on the AS400/O=iSeries Subject: Re: compiling an RPGLE pgm What's the difference between DFTACTGRP(*NO) and DFTACTGRP(*YES)? I specify *NO to get it to compile and run, but I don't have any idea why I'm doing it. I guess if someone could give a simple explanation of DFTACTGRP (*NO) and DFTACTGRP(*YES) so that I could understand what I'm doing when I'm doing it, I would appreciate it. TIA, Frank rob@xxxxxxxxx@midrange.com on 04/21/2003 10:53:00 AM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx To: RPG programming on the AS400/iSeries <rpg400-l@xxxxxxxxxxxx> cc: Subject: Re: compiling an RPGLE pgm Why does it matter? Rob Berendt -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin fkany@xxxxxxxxxxxxxxxxxx Sent by: rpg400-l-bounces@xxxxxxxxxxxx 04/21/2003 10:38 AM Please respond to RPG programming on the AS400 / iSeries To: RPG400-L@xxxxxxxxxxxx cc: Fax to: Subject: compiling an RPGLE pgm Hi All, Why must I specify DFTACTGRP(*NO) when compiling? The only thing I'm doing different in my program is I'm using prototypes or subprocedures(which ever is the correct name) instead of using subroutines. TIA, Frank _______________________________________________ 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.cgi/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. _______________________________________________ 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.cgi/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. _______________________________________________ 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.cgi/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 mailing list archive is Copyright 1997-2025 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.