Compiling source programs for a previous release

The CL compiler commands allow you to compile CL source programs to use on a previous release by using the Target release (TGTRLS) parameter.

The TGTRLS parameter specifies on which release of the IBM® i operating system the CL program will be run. You can specify *CURRENT, *PRV, or a specific release level.

A CL source program compiled with TGTRLS(*CURRENT) runs only on the current release or later releases of the operating system. A CL source program compiled with a specified TGTRLS value other than *CURRENT can run on the specified release value and on later releases.