Now, Get RPG Codes in all three formats only on this website on every RPGLE related programming article.

Fixed, /Free and Fully Free RPG


Process for creating a CL program or CL procedure

Process for creating a CL program or CL procedure
Process for creating a CL program or CL procedureProcess for creating a CL program or CL procedure, Create CL source, Create CL module, Create CL program, CReateOPM CL prorgam, CRTCLPGM,, CRTBNDCL, CRTPGM, CRTCLMOD
Process for creating a CL program or CL procedure

Steps for creating CL programs

There are the following steps to create a CL program.

  1. Create Source
  2. Create Module
  3. Create Program

Create Source

Write CL commands as CL source statements in CLLE or CLP source member.

Create Module

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 program

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).

Related Post

Post a Comment

© AS400 and SQL Tricks. All rights reserved. Developed by Jago Desain