CL programs and procedures

CL programs and procedures are created from source statements consisting entirely of control language commands. The commands are compiled into either an OPM program or an ILE module that can be bound into programs made up of modules written in CL or other languages.

Advantages of using CL programs and procedures include:

CL programs and procedures can be used for many kinds of applications. For example, CL procedures can be used to:

Most of the CL commands provided by the system can be used in CL programs and procedures. Some commands are specifically designed for use in CL programs and procedures and are not available when commands are entered individually. These commands include:

Using CL programs and procedures, applications can be designed with a separate program or procedure for each function, and with a CL program or procedure controlling which programs or procedures are run within the application. The application can consist of both CL and other HLL programs or procedures. In this type of application, CL programs or procedures are used to:

CL programs and procedures provide the flexibility needed to let the application user select what operations to perform and run the necessary procedures.

There are four types of CL programs and procedures: procedure, module, program, and service program.