Program Activation

Activation is the process used to prepare a program to run. Both ILE programs and service programs must be activated by the system before they can be run.

Program activation includes two major steps:
  1. Allocate and initialize static storage for the program.
  2. Complete the binding of programs to service programs.

This topic concentrates on step 1. Step 2 is explained in Service Program Activation.

Figure 1 shows a program object that is stored in permanent disk storage. As with all IBM® i objects, program objects can be shared by multiple concurrent users running in different jobs and only one copy of the program's instructions exists. However, when a program is activated, storage for program variables must be allocated and initialized.

As shown in Figure 1, each program activation has its own copy of these variables.

Figure 1. One Copy of Static Variables for Each Program Activation
One Copy of Static Variables for Each Program Activation