iSeries / AS400 FAQ : Programming : RPG : How do I use activation groups?
This answer is intended to be a starting point for ILE beginners. More than most FAQ answers, it is NOT intended to be the absolute, correct and only way to approach activation groups. This FAQ is a work in progress, based mostly on the RPG400-L archive thread at http://archive.midrange.com/rpg400-l/200203/threads.html#00130 Everyone reading this should have already read the ILE Concepts manual (V5R2): http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c4156066.pdf and the RPG IV Redbook: http://www.redbooks.ibm.com/abstracts/sg245402.html The activation group concept is intended to be a way to subdivide a job into smaller portions, especially in the areas of overrides and static memory. An activation group does NOT span jobs! The corollary is that programs which run in the same AG are intended to be developed as a single cooperative application. Activation group strategies revolve around the various parameters on the CRTRPGMOD, CRTBNDRPG, CRTPGM and CRTSRVPGM commands: NAG – Name