|
Alan, >>Don't you mean *NEW for the programs called by the menu? Because if you >>have the menu as *NEW (which also makes sense), everything else that >>gets called with *CALLER is inside the same activation group. Even with programs called by the menu or get submitted, I'd prefere to use named activation groups. Named activation groups are opened at the first call and exist until either the job ends or an RCLACTGRP (reclaim activation group) is exectuted. In this way they can be specifically closed, if needed. But programs running in named activation groups cannot be called recursively. If you use activation group *New instead, the overhead of creating and deleting the activation group will happen each time you call the program in your job. For our application, we defined the following rules: 1. programs called by the menu, from command line or with the Cl-Command SBMJOB are generated with a named activation group (program name = activation group name) 2. programs consist only of a bunch of procedure calls that are located in sevice programs. 3. service programs containing insert, update or delete procedures are generated with activation group *CALLER. This allows us to start commitement control with commitment scope *ACTGRP. 4. All other service programs are generated with a named activation group. (activation group = service program name) Birgitta -----Ursprüngliche Nachricht----- Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]Im Auftrag von Alan C Gesendet: Montag, 19. Dezember 2005 04:53 An: RPG programming on the AS400 / iSeries Betreff: Re: ILE Recursivity RNX8888 Hi Jon, >As Joe noted earlier, creating a new AG is a very expensive process and not >something you want to do often. Normally *New is used for the root program >(say a menu) of a group so that everything is cleaned up when you return. >Not only does it take time to create the new AG, it will take time to tear >it down as you return, Jon Paris > > Don't you mean *NEW for the programs called by the menu? Because if you have the menu as *NEW (which also makes sense), everything else that gets called with *CALLER is inside the same activation group. --Alan -- 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/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.