Command reference / prog
CRTCBLMOD
Create COBOL Module
Compiles an ILE COBOL source program into a module. It can be used interactively, in batch mode, or in a CL program. All object names must follow server naming conventions.
Allowed environments: *ALL.
Positional parameters: 5.
Parameters
MODULE
Module
Specifies the module name and library for the module object to be created. Names must follow server naming conventions.
*PGMID- Name taken from the PROGRAM-ID paragraph of the outermost ILE COBOL program.
*CURLIB- Stored in the current library; QGPL if none is assigned.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Module
Module
Suggested / special values:
*PGMID
Library
Library
Suggested / special values:
*CURLIB
SRCFILE
Source file
Specifies the source file and library containing the ILE COBOL source. The file should have record length 92.
*LIBL- The library list is searched for the source file.
*CURLIB- Uses the current library; QGPL if none is assigned.
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 containing the ILE COBOL source. Valid only when SRCFILE is a database file.
Suggested / special values:
*MODULE
*MODULE- Uses the member with the same name as the module; if no module name is given, the first member is used.
SRCSTMF
Source stream file
Specifies the path name of the stream file containing the ILE COBOL source. Cannot be used with SRCMBR or SRCFILE.
GENLVL
Generation severity level
Severity level that determines whether a module object is created; no module is created if errors reach this level. Range 0 to 30, default 30.
TEXT
Text 'description'
Briefly describes the module and its function; up to 50 SBCS characters.
Suggested / special values:
*SRCMBRTXT, *BLANK
*SRCMBRTXT- Uses the text of the source database member; same as *BLANK for device or inline source.
*BLANK- No text is specified.
OUTPUT
Output
Specifies whether a compiler listing is generated.
Allowed values:
*PRINT, *NONE
*PRINT- A compiler listing is generated.
*NONE- No compiler listing is generated.
OPTION
Compiler options
Specifies the options used when the ILE COBOL source is compiled. Options in a PROCESS statement override these. Common values are listed here; the page lists more.
Allowed values:
*SOURCE, *NOSOURCE, *SRC, *NOSRC, *NOXREF, *XREF, *GEN, *NOGEN, *NOSEQUENCE, *SEQUENCE, *NOVBSUM, *VBSUM, *NONUMBER, *NUMBER, *LINENUMBER, *NOMAP, *MAP, *NOOPTIONS, *OPTIONS, *QUOTE, *APOST, *NOSECLVL, *SECLVL, *PRTCORR, *NOPRTCORR, *MONOPRC, *NOMONOPRC, *RANGE, *NORANGE, *NOUNREF, *UNREF, *NOSYNC, *SYNC, *NOCRTF, *CRTF, *NODUPKEYCHK, *DUPKEYCHK, *NOINZDLT, *INZDLT, *NOBLK, *BLK, *STDINZ, *NOSTDINZ, *STDINZHEX00, *NODDSFILLER, *DDSFILLER, *NOIMBEDERR, *IMBEDERR, *STDTRUNC, *NOSTDTRUNC, *NOCHGPOSSGN, *CHGPOSSGN, *NOEVENTF, *EVENTF, *MONOPIC, *NOMONOPIC, *NOCRTARKIDX, *CRTARKIDX
*SOURCE- Produces the source listing with compilation errors.
*NOSOURCE- No source part of the listing.
*XREF- Produces a cross-reference listing.
*NOXREF- No cross-reference listing.
*GEN- Creates a module object after compilation.
*NOGEN- Does not create a module object.
*MAP- Lists the Data Division map.
*NOMAP- No Data Division map.
*SECLVL- Second-level message text is listed with the first-level error text.
*NOSECLVL- No second-level message text.
*RANGE- Subscripts, reference modification and date-time contents are checked at run time (index ranges are not).
*NORANGE- Ranges are not checked at run time; faster code.
*OPTIONS- Options in effect are listed.
*NOOPTIONS- Options in effect are not listed.
CVTOPT
Conversion options
Specifies how date, time, timestamp, DBCS, variable-length and floating-point fields from externally described files, passed through COPY DDS, are handled.
Allowed values:
*NOVARCHAR, *VARCHAR, *NODATETIME, *DATETIME, *NOPICXGRAPHIC, *PICXGRAPHIC, *NOPICGGRAPHIC, *PICGGRAPHIC, *NOFLOAT, *FLOAT, *NODATE, *DATE, *NOTIME, *TIME, *NOTIMESTAMP, *TIMESTAMP, *NOCVTTODATE, *CVTTODATE, *NOPICNGRAPHIC, *PICNGRAPHIC
*NOVARCHAR- Variable-length fields are declared as FILLER.
*VARCHAR- Variable-length fields are declared as group items accessible to the program.
*NODATETIME- Date, time and timestamp types are declared as FILLER.
*DATETIME- Date, time and timestamp types get COBOL names based on DDS names; alphanumeric unless *DATE, *TIME or *TIMESTAMP is given.
*NOFLOAT- Floating-point types are declared as FILLER with binary usage.
*FLOAT- Floating-point types are declared as COMP-1 or COMP-2 with their DDS names.
MSGLMT
Message limit
Specifies the maximum number of messages of a given severity per compilation unit before compilation stops. Element 1 is the number of messages; element 2 is the severity, default 30.
*NOMAX- Compilation continues to normal completion regardless of error count.
Elements in order
Number of messages
Number of messages
Suggested / special values:
*NOMAX
Message limit severity
Message limit severity
DBGVIEW
Debug view option
Specifies which views of the source or generated listing are available for debugging, and whether the debug listing view is compressed. Element 1 is the debug view; element 2 is compression.
*STMT- Debugging by symbolic names and statement numbers.
*SOURCE- Source views of the primary and COPY members are available; requires local database source files.
*LIST- Listing view showing source after COPY and REPLACE processing; available regardless of source location.
*ALL- Equivalent to *STMT, *SOURCE and *LIST combined.
*NONE- Module cannot be debugged; formatted dump is not possible.
*NOCOMPRESSDBG- Listing view is not compressed.
*COMPRESSDBG- Listing view is compressed when *LIST or *ALL is specified.
Elements in order
Debug view
Debug view
Allowed values:
*STMT, *SOURCE, *LIST, *ALL, *NONE
Compress listing view
Compress listing view
Allowed values:
*NOCOMPRESSDBG, *COMPRESSDBG
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.
OPTIMIZE
Optimize level
Specifies the optimization level of the module. The level can be changed later with CHGMOD, CHGPGM or CHGSRVPGM unless *NEVER is used.
Allowed values:
*NONE, *BASIC, *FULL, *NEVER
*NONE- No optimization; minimal compile time; variables can be displayed and changed in debugging.
*BASIC- Local-block optimization; variables can be displayed but not changed in debugging.
*FULL- Global optimization; most efficient code; longest compile time; values may not be current.
*NEVER- No optimization, and the level cannot be changed later.
FLAGSTD
FIPS flagging
Specifies FIPS flagging options. Use *LINENUMBER on OPTION to make FIPS message reference numbers unique.
Allowed values:
*NOFIPS, *MINIMUM, *INTERMEDIATE, *HIGH, *NOOBSOLETE, *OBSOLETE
*NOFIPS- Not FIPS flagged.
*MINIMUM- FIPS flag for minimum subset and higher.
*INTERMEDIATE- FIPS flag for intermediate subset and higher.
*HIGH- FIPS flag for high subset.
*NOOBSOLETE- Obsolete language elements are not flagged.
*OBSOLETE- Obsolete language elements are flagged.
EXTDSPOPT
Extended display options
Specifies options for extended ACCEPT and DISPLAY statements for workstation I/O.
Allowed values:
*DFRWRT, *NODFRWRT, *UNDSPCHR, *NOUNDSPCHR, *ACCUPDALL, *ACCUPDNE
*DFRWRT- Extended DISPLAY output is buffered until an extended ACCEPT or the buffer fills.
*NODFRWRT- Each extended DISPLAY is performed as encountered.
*UNDSPCHR- Displayable and undisplayable characters are handled.
*NOUNDSPCHR- Only displayable characters are handled.
*ACCUPDALL- All data is predisplayed in extended ACCEPT statements regardless of UPDATE.
*ACCUPDNE- Only numeric edited data is predisplayed in extended ACCEPT statements without UPDATE.
FLAG
Flagging severity
Specifies the minimum severity level of messages shown in the compiler listing. The value is 0 to 99; 0 shows all messages.
REPLACE
Replace module
Specifies whether a new module replaces an existing module of the same name in the library.
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.
AUT
Authority
Specifies the authority given to users without specific authority to the module, not on an authorization list, and whose group has none.
Suggested / special values:
*LIBCRTAUT, *ALL, *CHANGE, *USE, *EXCLUDE
*LIBCRTAUT- Public authority taken from the CRTAUT value of the target library at creation.
*ALL- All operations except owner-limited and authorization list management; cannot transfer ownership.
*CHANGE- All data authority and most operations, except owner-limited ones.
*USE- Operational and read authority; cannot change the module.
*EXCLUDE- The user cannot access the module.
LINKLIT
Link literal
Specifies the linkage type for external CALL/CANCEL literal targets and SET ENTRY targets. Can be overridden with LINKAGE TYPE IS in SPECIAL-NAMES.
Allowed values:
*PGM, *PRC
*PGM- The target is a program object.
*PRC- The target is an ILE procedure.
TGTRLS
Target release
Specifies the operating system release on which the module will be used, in VxRxMx format.
Suggested / special values:
*CURRENT, *PRV
*CURRENT- The release currently running; the module can also be used on later releases.
*PRV- The previous release with modification level 0; the module can also be used on later releases.
SRTSEQ
Sort sequence
Qualified parts (object, then library; write LIBRARY/OBJECT)
Sort sequence
Sort sequence
Library
Library
Suggested / special values:
*LIBL, *CURLIB
LANGID
Language id
Suggested / special values:
*JOBRUN, *JOB
ENBPFRCOL
Enable performance collection
Elements in order
Collection level
Collection level
Allowed values:
*FULL, *ENTRYEXIT
STGMDL
Storage model
Allowed values:
*INHERIT, *SNGLVL, *TERASPACE
PRFDTA
Profiling data
Allowed values:
*NOCOL, *COL
CCSID
Coded character set ID
Suggested / special values:
*JOBRUN, *HEX, *JOB
NTLCCSID
National CCSID
ARITHMETIC
Arithmetic mode
Allowed values:
*NOEXTEND, *EXTEND31, *EXTEND31FULL, *EXTEND63
NTLPADCHAR
Padding character
Elements in order
Single byte to national
Single byte to national
Suggested / special values:
*DEFAULT
Double byte to national
Double byte to national
Suggested / special values:
*DEFAULT
National to national
National to national
Suggested / special values:
*DEFAULT
LICOPT
Licensed Internal Code options
INCDIR
Include directory
Suggested / special values:
*NONE
PGMINFO
Program interface information
Elements in order
Generate
Generate
Allowed values:
*NO, *PCML
Location
Location
Allowed values:
*STMF, *MODULE, *ALL
INFOSTMF
Program interface stream file
DEFINE
Define names
Suggested / special values:
*NONE
Generated from os/cl/catalog/CRTCBLMOD.json and os/cl/help/CRTCBLMOD.json.