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.

Type
*QUAL
Required
No
Case
Uppercase
*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

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

Suggested / special values: *PGMID

Library Library

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

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.

Type
*QUAL
Required
No
Case
Uppercase
*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

Type
*NAME
Required
No
Default
QCBLLESRC
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 containing the ILE COBOL source. Valid only when SRCFILE is a database file.

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

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.

Type
*CHAR
Required
No
Length
50
Case
Uppercase

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.

Type
*UINT2
Required
No
Default
30
Range
0 to 30
Case
Uppercase

TEXT Text 'description'

Briefly describes the module and its function; up to 50 SBCS characters.

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

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.

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

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.

Type
*CHAR
Required
No
Length
12
List limit
50
Case
Uppercase

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.

Type
*CHAR
Required
No
Length
14
List limit
8
Case
Uppercase

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.

Type
*ELEM
Required
No
Case
Uppercase
*NOMAX
Compilation continues to normal completion regardless of error count.
Elements in order

Number of messages Number of messages

Type
*UINT2
Required
No
Default
*NOMAX
Range
0 to 9999
Case
Uppercase

Suggested / special values: *NOMAX

Message limit severity Message limit severity

Type
*UINT2
Required
No
Default
30
Range
0 to 30
Case
Uppercase

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.

Type
*ELEM
Required
No
Case
Uppercase
*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

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

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

Compress listing view Compress listing view

Type
*CHAR
Required
No
Default
*NOCOMPRESSDBG
Length
14
Case
Uppercase

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.

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

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.

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

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.

Type
*CHAR
Required
No
Length
13
List limit
2
Case
Uppercase

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.

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

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.

Type
*UINT2
Required
No
Default
0
Range
0 to 99
Case
Uppercase

REPLACE Replace module

Specifies whether a new module replaces an existing module of the same name in the library.

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.

AUT Authority

Specifies the authority given to users without specific authority to the module, not on an authorization list, and whose group has none.

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

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.

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

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.

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

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

Type
*QUAL
Required
No
Case
Uppercase
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

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

Suggested / special values: *JOBRUN, *JOB

ENBPFRCOL Enable performance collection

Type
*ELEM
Required
No
Case
Uppercase
Elements in order

Collection level Collection level

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

Allowed values: *FULL, *ENTRYEXIT

STGMDL Storage model

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

Allowed values: *INHERIT, *SNGLVL, *TERASPACE

PRFDTA Profiling data

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

Allowed values: *NOCOL, *COL

CCSID Coded character set ID

Type
*INT4
Required
No
Default
*JOBRUN
Case
Uppercase

Suggested / special values: *JOBRUN, *HEX, *JOB

NTLCCSID National CCSID

Type
*INT4
Required
No
Default
13488
Case
Uppercase

ARITHMETIC Arithmetic mode

Type
*CHAR
Required
No
Default
*NOEXTEND
Length
13
Case
Uppercase

Allowed values: *NOEXTEND, *EXTEND31, *EXTEND31FULL, *EXTEND63

NTLPADCHAR Padding character

Type
*ELEM
Required
No
Case
Uppercase
Elements in order

Single byte to national Single byte to national

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

Suggested / special values: *DEFAULT

Double byte to national Double byte to national

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

Suggested / special values: *DEFAULT

National to national National to national

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

Suggested / special values: *DEFAULT

LICOPT Licensed Internal Code options

Type
*CHAR
Required
No
Length
50
Case
Uppercase

INCDIR Include directory

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

Suggested / special values: *NONE

PGMINFO Program interface information

Type
*ELEM
Required
No
Case
Uppercase
Elements in order

Generate Generate

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

Allowed values: *NO, *PCML

Location Location

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

Allowed values: *STMF, *MODULE, *ALL

INFOSTMF Program interface stream file

Type
*CHAR
Required
No
Length
50
Case
Uppercase

DEFINE Define names

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

Suggested / special values: *NONE

IBM command documentation

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