Program activations

An activation of a program is the allocation of static storage for the program.

An activation is always ended when one of the following happens:

In addition, an activation can be destroyed by actions taken during a program call. These actions are dependent on the language (HLL or CL) in which the program is written.

When a program is deactivated, static storage is returned to the system. The language (HLL or CL) in which the program is written determines when the program is normally deactivated. A CL program is always deactivated when the program ends.

An RPG/400® program is deactivated when the last record indicator (LR) is set on before the program ends. If there is a return operation and LR is off, the program is not deactivated.

Related information
Reclaim Resources (RCLRSC) command