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.
*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
Library
Library
Suggested / special values:
*CURLIB
SRCFILE
Source file
Specifies the source file that contains the CL source member to be compiled. The default is QCLSRC.
*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
Library
Library
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.
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.
TEXT
Text 'description'
Briefly describes the compiled CL module, up to 50 characters.
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.
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.
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.
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.
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.
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.
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.
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.
*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
Library
Library
Suggested / special values:
*LIBL, *CURLIB
LANGID
Language ID
Specifies the language identifier used when SRTSEQ is *LANGIDUNQ or *LANGIDSHR.
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.
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.
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.
Suggested / special values:
*NONE
*NONE- No encryption key is specified.
ENBPFRCOL
Enable performance collection
The page marks this parameter as obsolete.
Allowed values:
*PEP, *FULL, *NONE
INCFILE
INCLUDE file
Specifies the source file containing members to be included through INCLUDE CL source commands.
*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
Library
Library
Suggested / special values:
*LIBL, *CURLIB
INCDIR
Include directory
Specifies up to 32 directories added to the compiler's search path for include files.
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.
Generated from os/cl/catalog/CRTCLMOD.json and os/cl/help/CRTCLMOD.json.