Command reference / prog
CRTBNDCBL
Create Bound COBOL Program
Compiles an ILE COBOL source program into a runnable program in one step. It can be used interactively, in batch, or from a CL program. All object names must follow server naming conventions.
Allowed environments: *ALL.
Positional parameters: 5.
Parameters
PGM
Program
Names the program object to create and the library to store it in. *PGMID takes the name from the PROGRAM-ID paragraph. Optional.
*PGMID- Takes the name from the PROGRAM-ID paragraph; with SIMPLEPGM(*NO), from the first program in the source member.
*CURLIB- Stores the program in the current library, or QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Program
Program
Suggested / special values:
*PGMID
Library
Library
Suggested / special values:
*CURLIB
SRCFILE
Source file
File holding the ILE COBOL source, which should have record length 92. Default QCBLLESRC.
*LIBL- Finds the source file through the library list.
*CURLIB- Uses the current library, or 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
Member of the source file to compile. Valid only when SRCFILE is a database file.
Suggested / special values:
*PGM
*PGM- Uses the member with the same name as the program given on PGM; if no program name is given, the first member is used.
OUTPUT
Output
Whether a compiler listing is generated. Default *PRINT.
Allowed values:
*PRINT, *NONE
*PRINT- A compiler listing is generated.
*NONE- No compiler listing is generated.
OPTION
Compiler options
Options used when the source is compiled. PROCESS statements in the source override the corresponding values. Common values are listed here; the page lists more.
Suggested / special values:
*SOURCE, *NOSOURCE, *SRC, *NOSRC, *XREF, *NOXREF, *GEN, *NOGEN, *SEQUENCE, *NOSEQUENCE, *VBSUM, *NOVBSUM
*SOURCE- Produces a source listing and compile-time error messages.
*NOSOURCE- No source part in the listing; may compile faster.
*XREF- Produces a cross-reference listing.
*NOXREF- No cross-reference listing.
*GEN- Creates a program object after compiling.
*NOGEN- Does not create a program object; for messages or listings only.
*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- Second-level message text is not listed.
*RANGE- Subscripts, reference modification and date-time contents are checked at run time.
*NORANGE- Ranges are not checked at run time; faster code.
SRCSTMF
Source stream file
Names the stream file containing ILE COBOL source. Absolute paths start with /. Relative paths are resolved against the job current directory. Cannot be specified with SRCFILE or SRCMBR.
GENLVL
Generation severity level
Severity threshold for creating a program object; no program is created if errors at or above this level occur. Default 30.
TEXT
Text 'description'
Describes the program and its function, up to 50 SBCS characters in single quotes. Default *SRCMBRTXT uses the source member's text.
Suggested / special values:
*SRCMBRTXT, *BLANK
*SRCMBRTXT- Uses the source member's text; same as *BLANK for device or inline source.
*BLANK- No text is specified.
DBGVIEW
Debugging view
Which debug views are available, and whether the debug listing view is compressed. Element 1 defaults to *STMT; element 2 to *NOCOMPRESSDBG.
Allowed values:
*STMT, *SOURCE, *LIST, *ALL, *NONE
*STMT- Debugging by symbolic names and statement numbers.
*SOURCE- Source views of primary and copied members; only for local database source members.
*LIST- Listing view showing source after COPY and REPLACE processing.
*ALL- Same as *STMT, *SOURCE and *LIST combined.
*NONE- Program cannot be debugged; smaller object; no formatted dump.
OPTIMIZE
Optimize level
Optimization level of the program. It can be changed later with CHGPGM unless *NEVER was chosen. Default *NONE.
Allowed values:
*NONE, *BASIC, *FULL, *NEVER
*NONE- No optimization; variables can be displayed and changed during debugging.
*BASIC- Local-block optimization; variables can be displayed but not changed.
*FULL- Global optimization; most efficient code but longer compile time; displayed values may not be current.
*NEVER- No optimization, and the level cannot be changed later.
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.
CVTOPT
Conversion options
Controls how COPY DDS defines variable-length, date, time, timestamp, floating-point, and graphic fields.
Allowed values:
*NOVARCHAR, *VARCHAR, *NODATETIME, *DATETIME, *NOPICXGRAPHIC, *PICXGRAPHIC, *NOPICGGRAPHIC, *PICGGRAPHIC, *NOFLOAT, *FLOAT, *NODATE, *DATE, *NOTIME, *TIME, *NOTIMESTAMP, *TIMESTAMP, *NOCVTTODATE, *CVTTODATE, *NOPICNGRAPHIC, *PICNGRAPHIC
NTLCCSID
National CCSID
CCSID for national data items. Defaults to 13488 (UCS-2). Specify 1200 for UTF-16.
REPLACE
Replace program
Whether a new program replaces an existing program of the same name. A replaced program is moved to library QRPLOBJ. Default *YES.
Allowed values:
*YES, *NO
*YES- Creates the new program and replaces the existing one.
*NO- Does not create the program; a message is shown and compilation stops.
USRPRF
User profile
Which user profile runs the program: the user's, or both the owner's and the user's. Not updated if the program already exists. Default *USER.
Allowed values:
*USER, *OWNER
*USER- The profile of the program user is used when the program runs.
*OWNER- Both owner and user profiles are used; objects created while running are owned by the user.
AUT
Authority
Public authority given to users with no specific authority, not on an authorization list, and whose group has none. Default *LIBCRTAUT. An authorization list name may also be given.
Suggested / special values:
*LIBCRTAUT, *CHANGE, *ALL, *USE, *EXCLUDE
*LIBCRTAUT- Uses the CRTAUT value of the target library at creation time.
*ALL- All operations except owner-limited ones; can control existence and security, but cannot transfer ownership.
*CHANGE- All data authority and operations except those limited to the owner or object management.
*USE- Operational and read authority; cannot change the program.
*EXCLUDE- The user cannot access the program.
TGTRLS
Target release
Selects the target operating-system release, or a supported VxRxMx release name. Supported release names depend on the compiler release.
*CURRENT- Target the current operating-system release.
*PRV- Target the previous release at modification level zero.
ACTGRP
Activation group
Selects the activation group in which the program runs.
Suggested / special values:
*STGMDL, *NEW, *CALLER
*STGMDL- Use QILE for the single-level storage model, or QILETS for teraspace.
*NEW- Create a new activation group for each call.
*CALLER- Use the activation group of the caller.
name- Use the named activation group.
LINKLIT
Link literal
Linkage type for the target of an external CALL or CANCEL 'literal' and of SET ENTRY. A LINKAGE TYPE IS clause in SPECIAL-NAMES overrides it for the targets it lists.
Allowed values:
*PGM, *PRC
*PGM- The target is a program object.
*PRC- The target is an ILE procedure.
BNDDIR
Binding directory
Binding directories used in symbol resolution, up to 50.
Suggested / special values:
*NONE
*NONE- No binding directory is specified.
*LIBL- Finds the binding directory through the library list.
*CURLIB- Uses the current library, or QGPL if none is set.
*USRLIBL- Searches only the user portion of the library list.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Binding directory
Binding directory
Library
Library
Suggested / special values:
*LIBL, *CURLIB, *USRLIBL
Generated from os/cl/catalog/CRTBNDCBL.json and os/cl/help/CRTBNDCBL.json.