Sign in

docs ILE Concepts

Reclaim Resources Command for ILE Programs

Reclaim Resources Command for ILE Programs

For ILE programs that are created by the CRTBNDRPG and CRTBNDCL commands with DFTACTGRP(*YES) specified, the RCLRSC command frees static storage just as it does for OPM programs. For ILE programs that are not created by the CRTBNDRPG or CRTBNDCL commands with DFTACTGRP(*YES) specified, the RCLRSC command reinitializes any activations that have been created in a default activation group but does not free static storage. ILE programs that use large amounts of static storage should be activated in an ILE activation group. Deleting the activation group returns this storage to the system. The RCLRSC command closes files opened by service programs or ILE programs running in a default activation group. The RCLRSC command does not reinitialize static storage of service programs and does not affect non-default activation groups.

To use the RCLRSC command directly from ILE, you can use either the QCAPCMD API or an ILE CL procedure. Using the QCAPCMD API, you can directly call system commands without the use of a CL program. In Figure 1, directly calling system commands is important because you might want to use the call-level number of a particular ILE procedure. Certain languages, such as ILE C, also provide a system function that allows direct running of IBM® i commands.