For this installment of APIs by Example, I have written a utility based on two Open List APIs: “Open List of Activation Group Attributes” and “Open List of Activation Attributes.” The utility is presented in the form of the Analyze Activation Groups (ANZACTGRP) command.
Activation groups are an aspect of the ILE (Integrated Language Environment) runtime and constitute a substructure of any job on the iSeries. The activation group contains the resources that are necessary to run a program, including static program variables, dynamic storage, open files (ODPs), SQL cursors, and many more.
You can control which activation groups your ILE programs run in by specifying the ACTGRP parameter on the Create Program (CRTPGM), Create Bound Program (CRTBNDxxx), or Create Service Program (CRTSRVPGM) command.
Download the save file containing the source code.