Command reference / prog

CRTCLMOD

Create CL Module

Creates a control language (CL) module from the specified CL source member or CL stream source file.

Allowed environments: *ALL. Positional parameters: 5.

Parameters

MODULE Module

Specifies the module object to be created. This is a required parameter.

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

Module Module

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 to be compiled, if its name differs from the module name.

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

Suggested / special values: *MODULE

*MODULE
The member has the same name as the module.

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 module, 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
Text is not 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 module is created. Up to four values may be specified.

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

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

*GEN
All phases of compilation are carried out.
*NOGEN
Compilation stops after syntax checking; no module is created.
*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 spooled listing.
*NODOSLTLVL
No DO and SLT nesting-level columns.

LOG Log commands

Specifies the logging options for the created CL module.

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 module object

Specifies whether an existing module 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 module is moved to library QRPLOBJ and replaced.
*NO
The existing module 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 module.

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 module is created.
*JOBRUN
The SRTSEQ of the job when the CL module 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 module is run.
*JOB
The job's language ID when the module 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 module 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

CRTCLMOD PAYROLL TEXT('Payroll Program')

Calls the ILE CL compiler to create module PAYROLL from member PAYROLL in default source file QCLSRC. A compiler listing is created.

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

Calls the ILE CL compiler to create module PAYROLL from stream source file payroll.cl in IFS directory /home/todd.

IBM command documentation

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