CL Command Reference - CRTBNDCL
CL Command List > CRTBNDCL Reference
Description:
The Create Bound Control Language Program (CRTBNDCL) command creates an Integrated Language Environment (ILE) control language (CL) program from the specified CL source program.
Most of the parameters and options for the CRTBNDCL command are the same as the parameters and options for the Create Control Language Module (CRTCLMOD) command, with the exception of the User profile (USRPRF) parameter, which only exists on the CRTBNDCL command. Option *NOGEN is not available on the CRTBNDCL command. The full compilation is always run.
Examples:
Example 1: Creating a Program to be Run by Any System User
CRTBNDCL PAYROLL TEXT(¡¯Payroll Program¡¯)
This command calls the ILE CL compiler to create a program named PAYROLL. The CL procedure source is in the default source file QCLSRC in the member PAYROLL. A compiler listing is created. The program is processed under the program user¡¯s user profile and can be run by any system user.
Example 2: Creating a Program to be Run by an Authorized User
CRTBNDCL PGM(PARTS) SRCFILE(MYLIB/PARTDATA) AUT(*EXCLUDE)
OUTPUT(*PRINT)
TEXT(¡¯This program displays all parts data¡¯)
This command creates a CL program named PARTS and stores it in the current library. The source for the program is in the PARTS member of the source file PARTDATA in the library MYLIB. A compiler listing is created. This program can be processed under the profile of the user that is running the program, who could be the owner or another user to which the owner has granted specific authorization by name in the Grant Object Authority (GRTOBJAUT) command.