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.

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

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

File holding the ILE COBOL source, which should have record length 92. Default QCBLLESRC.

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

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

Member of the source file to compile. Valid only when SRCFILE is a database file.

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

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.

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

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.

Type
*CHAR
Required
No
Length
10
List limit
40
Case
Uppercase

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.

Type
*PNAME
Required
No
Length
5000
Case
Mixed case

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.

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

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.

Type
*CHAR
Required
No
Default
*SRCMBRTXT
Length
50
Case
Mixed case

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.

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

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.

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

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.

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.

CVTOPT Conversion options

Controls how COPY DDS defines variable-length, date, time, timestamp, floating-point, and graphic fields.

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

NTLCCSID National CCSID

CCSID for national data items. Defaults to 13488 (UCS-2). Specify 1200 for UTF-16.

Type
*INT4
Required
No
Default
13488
Case
Uppercase

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.

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

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.

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

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.

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

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.

Type
*CHAR
Required
No
Default
*CURRENT
Length
8
Case
Uppercase
*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.

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

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.

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.

BNDDIR Binding directory

Binding directories used in symbol resolution, up to 50.

Type
*QUAL
Required
No
Default
*NONE
List limit
50
Case
Uppercase

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

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, *USRLIBL

IBM command documentation

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