Command reference / prog

CRTBNDCL

Create Bound CL Program

Creates an ILE control language (CL) program from the specified CL source program. Most parameters match CRTCLMOD; the exception is USRPRF, which exists only on CRTBNDCL. Option *NOGEN is not available, and full compilation always runs.

Allowed environments: *ALL. Positional parameters: 5.

Parameters

PGM Program

Specifies the program to be created. This is a required parameter.

Type
*QUAL
Required
Yes
Case
Uppercase
*CURLIB
Stored in the job's current library; QGPL is used if no current library entry exists.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Program Program

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*CURLIB
Length
10
Case
Uppercase

Suggested / special values: *CURLIB

SRCFILE Source file

Specifies the source file that contains the CL source member to be compiled. The default is QCLSRC.

Type
*QUAL
Required
No
Case
Uppercase
*LIBL
Searches all libraries in the thread's library list until the first match.
*CURLIB
Uses the thread's current library; QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Source file Source file

Type
*NAME
Required
No
Default
QCLSRC
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

SRCMBR Source member

Specifies the member of the source file that contains the CL source program, if its name differs from the program name.

Type
*NAME
Required
No
Default
*PGM
Length
10
Case
Uppercase

Suggested / special values: *PGM

*PGM
The member has the same name as the program to be created.

SRCSTMF Source stream file

Specifies the path name of the stream file containing the CL source code. Cannot be used with SRCMBR or SRCFILE.

Type
*CHAR
Required
No
Length
50
Case
Uppercase

TEXT Text 'description'

Briefly describes the compiled CL program, up to 50 characters.

Type
*CHAR
Required
No
Default
*SRCMBRTXT
Length
50
Case
Uppercase

Suggested / special values: *SRCMBRTXT, *BLANK

*SRCMBRTXT
Text is taken from the source member; blank if the source is an inline or device file.
*BLANK
No text is specified.

DFTACTGRP Default activation group

Specifies whether the program is associated with the default activation group.

Type
*CHAR
Required
No
Default
*YES
Length
4
Case
Uppercase

Allowed values: *YES, *NO

*YES
Associated with the default activation group; ACTGRP cannot then be specified.
*NO
Not associated with the default activation group.

ACTGRP Activation group

Specifies the activation group the program is associated with when it is called.

Type
*NAME
Required
No
Default
*STGMDL
Length
10
Case
Uppercase

Suggested / special values: *STGMDL, *NEW, *CALLER

*STGMDL
Activated into QILE, or QILETS if STGMDL(*TERASPACE) is specified.
*NEW
A new activation group is created when the program is called.
*CALLER
Activated into the caller's activation group.

STGMDL Storage model

Specifies the storage model attribute of the program.

Type
*CHAR
Required
No
Default
*SNGLVL
Length
10
Case
Uppercase

Allowed values: *SNGLVL, *TERASPACE

*SNGLVL
Single-level storage model; runs only in a single-level storage activation group.
*TERASPACE
Teraspace storage model; cannot be specified if DFTACTGRP(*YES) is specified.

OUTPUT Output

Specifies whether a compiler listing is produced.

Type
*CHAR
Required
No
Default
*PRINT
Length
6
Case
Uppercase

Allowed values: *PRINT, *NONE

*PRINT
The compiler listing is produced.
*NONE
No compiler listing is produced.

OPTION Source listing options

Specifies the output lists created and whether a program is created. Up to three values may be specified.

Type
*CHAR
Required
No
Length
11
List limit
3
Case
Uppercase

Allowed values: *XREF, *NOXREF, *SECLVL, *NOSECLVL, *EVENTF, *NOEVENTF, *DOSLTLVL, *NODOSLTLVL

*XREF
Cross-reference listing; requires OUTPUT(*PRINT).
*NOXREF
No cross-reference listing.
*SECLVL
Second-level message text printed; requires OUTPUT(*PRINT).
*NOSECLVL
No second-level message text.
*EVENTF
Event file created for the CODE product.
*NOEVENTF
No event file created.
*DOSLTLVL
Adds DO and SLT nesting-level columns to the listing.
*NODOSLTLVL
No DO and SLT nesting-level columns.

USRPRF User profile

Specifies whether authority checking includes only the program's user or both the user and the program owner.

Type
*CHAR
Required
No
Default
*USER
Length
6
Case
Uppercase

Allowed values: *USER, *OWNER

*USER
The program runs under the profile of its user.
*OWNER
Both the owner's and the user's profiles are used.

LOG Log commands

Specifies the logging options for the created CL program.

Type
*CHAR
Required
No
Default
*JOB
Length
4
Case
Uppercase

Allowed values: *JOB, *YES, *NO

*JOB
Logging depends on the job's LOGCLPGM setting (CHGJOB); logging level must be 3 or 4 to list commands.
*YES
Commands are logged in all cases.
*NO
Commands are not logged.

ALWRTVSRC Allow RTVCLSRC

Specifies whether the CL source is saved with the module object so it can be retrieved later with RTVCLSRC.

Type
*CHAR
Required
No
Default
*YES
Length
4
Case
Uppercase

Allowed values: *YES, *NO

*YES
CL source is saved with the module.
*NO
CL source is not saved with the module.

REPLACE Replace program

Specifies whether an existing program with the same name in the library is replaced.

Type
*CHAR
Required
No
Default
*YES
Length
4
Case
Uppercase

Allowed values: *YES, *NO

*YES
The existing program is moved to library QRPLOBJ and replaced.
*NO
The existing program is not replaced; a message is shown and compilation stops.

TGTRLS Target release

Specifies the operating system release on which the object will be used, in VxRxMx format.

Type
*SNAME
Required
No
Default
*CURRENT
Length
10
Case
Uppercase

Suggested / special values: *CURRENT, *PRV

*CURRENT
The release currently running; the object can also be used on later releases.
*PRV
The previous release with modification level 0; the object can also be used on later releases.

AUT Authority

Specifies the authority granted to users who have no specific authority, are not on an authorization list, and whose group has none.

Type
*NAME
Required
No
Default
*LIBCRTAUT
Length
10
Case
Uppercase

Suggested / special values: *LIBCRTAUT, *CHANGE, *ALL, *USE, *EXCLUDE

*LIBCRTAUT
Authority is taken from the CRTAUT value of the target library.
*CHANGE
All operations except owner-limited and object existence/management operations.
*ALL
All operations except authorization list management; the user can also change ownership.
*USE
Basic operations such as running a program or reading a file; the object cannot be changed.
*EXCLUDE
The user cannot access the object.

SRTSEQ Sort sequence

Specifies the sort sequence table used for string comparisons in this CL program.

Type
*QUAL
Required
No
Case
Uppercase
*HEX
No sort table; hexadecimal character values determine the sequence.
*JOB
The SRTSEQ of the job when the CL program is created.
*JOBRUN
The SRTSEQ of the job when the CL program is run.
*LANGIDUNQ
Unique-weight sort table for the LANGID language.
*LANGIDSHR
Shared-weight sort table for the LANGID language.
*LIBL
Sort table is searched for in the library list.
*CURLIB
Sort table is searched for in the current library; QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Sort sequence Sort sequence

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

LANGID Language ID

Specifies the language identifier used when SRTSEQ is *LANGIDUNQ or *LANGIDSHR.

Type
*CHAR
Required
No
Default
*JOBRUN
Length
50
Case
Uppercase

Suggested / special values: *JOBRUN, *JOB

*JOBRUN
The job's language ID when the program is run.
*JOB
The job's language ID when the program is created.

OPTIMIZE Optimization

Specifies the optimization level. ILE CL cannot be optimized; values other than *NONE are accepted for compatibility but no optimization is performed.

Type
*CHAR
Required
No
Default
*NONE
Length
6
Case
Uppercase

Allowed values: *NONE, *BASIC, *FULL

*NONE
Not optimized; fastest translation, and variables can be displayed and modified while debugging.
*BASIC
No optimization is performed; CPD0861 is displayed and sent to the job log.
*FULL
No optimization is performed; CPD0861 is displayed and sent to the job log.

DBGVIEW Debugging view

Specifies which debugging level is available and which source views are available for source-level debugging.

Type
*CHAR
Required
No
Default
*STMT
Length
7
Case
Uppercase

Allowed values: *STMT, *SOURCE, *LIST, *ALL, *NONE

*STMT
Debugging by statement numbers and symbolic identifiers.
*SOURCE
Source view generated.
*LIST
Listing view generated.
*ALL
Source and listing views generated.
*NONE
No debug options available.

DBGENCKEY Debug encryption key

Specifies the key used to encrypt program source embedded in debug views. A key of 1 to 16 bytes.

Type
*CHAR
Required
No
Default
*NONE
Length
50
Case
Uppercase

Suggested / special values: *NONE

*NONE
No encryption key is specified.

ENBPFRCOL Enable performance collection

The page marks this parameter as obsolete.

Type
*CHAR
Required
No
Default
*PEP
Length
5
Case
Uppercase

Allowed values: *PEP, *FULL, *NONE

INCFILE INCLUDE file

Specifies the source file containing members to be included through INCLUDE CL source commands.

Type
*QUAL
Required
No
Case
Uppercase
*SRCFILE
The SRCFILE source file contains the members named on INCLUDE commands.
*LIBL
Searches the library list.
*CURLIB
Uses the current library; QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)

INCLUDE file INCLUDE file

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

INCDIR Include directory

Specifies up to 32 directories added to the compiler's search path for include files.

Type
*CHAR
Required
No
Default
*NONE
Length
50
List limit
32
Case
Uppercase

Suggested / special values: *NONE

*NONE
No directories are searched; the source directory is still searched.

Examples

CRTBNDCL PAYROLL TEXT('Payroll Program')

Calls the ILE CL compiler to create program PAYROLL from member PAYROLL in default source file QCLSRC. A compiler listing is created. The program runs under the program user's profile and can be run by any system user.

CRTBNDCL PAYROLL SRCSTMF('/home/todd/payroll.cl')

Creates CL program PAYROLL from stream source file payroll.cl in IFS directory /home/todd.

IBM command documentation

Generated from os/cl/catalog/CRTBNDCL.json and os/cl/help/CRTBNDCL.json.