Sign in

docs ILE Concepts

Activation-Group-Level Scoping

Activation-Group-Level Scoping

Activation-group-level scoping occurs when the data management resource is connected to the activation group associated with the ILE program or procedure invocation that created the resource. When the activation group is deleted, data management closes all resources associated with the activation group that have been left open. Figure 1 shows an example of activation-group-level scoping. Activation-group-level scoping is the default scoping level for most types of data management resources used by ILE procedures not running in a default activation group. For example, the figure shows ODPs for files F1, F2, and F3 and override R1 scoped to the activation group.

Figure 1. Activation Group Level Scoping. ODPs and overrides may be scoped to an activation group.

The ability to share a data management resource scoped to an activation group is limited to programs running in that activation group. This provides application isolation and protection. For example, assume that file F1 in the figure was opened with the SHARE(*YES) parameter value. File F1 could be used by any ILE procedure running in the same activation group. Another open operation for file F1 in a different activation group results in the creation of a second ODP for that file.