|Process for creating a CL program or CL procedure
Steps for creating CL programs
There are the following steps to create a CL program.
- Create Source
- Create Module
- Create Program
Write CL commands as CL source statements in CLLE or CLP source member.
Create the module using the command CRTCLMOD (Create Control Language Module). The source is used to create the module object. The created CL module can now be bound to the program to run. A CL module contains CL procedure.
Create the program using command CRTPGM command (Create Program). The modules one or many and service programs one or many bound to the program and then the program gets created.
If we want to create a CL program that only contains one CL module, we can use the command CRTBNDCL (Create Bound CL program) which combines separate steps of the module and program creation into one.
If we want to create an OPM CL program (Original Program Model) from the CL source statement then you can use the CRTCLPGM command (Create CL program).