ILE COBOL Programmer's Guide

Invoking CRTPGM Implicitly from CRTBNDCBL

There are implied default values to be used in the CRTPGM step implicitly invoked from the CRTBNDCBL command. They are described in the description that follows.

The parameters used in CRTPGM when it is invoked from CRTBNDCBL are as follows:

PGM
When SIMPLEPGM(*YES) is specified or implied, CRTPGM is invoked for each compilation unit in the sequence of source programs. The program name specified in the PROGRAM-ID paragraph in the corresponding outermost ILE COBOL source program of each compilation unit is used with the PGM parameter for CRTPGM each time it is invoked. An individually bound program object is created for each compilation unit.

When SIMPLEPGM(*NO) is specified, CRTPGM is invoked only one time against all of the compilation units in the sequence of source programs at once. Only the program name specified in the PROGRAM-ID paragraph in the corresponding outermost ILE COBOL source program for the first compilation unit in the sequence of the source programs is used with the PGM parameter for CRTPGM when it is invoked. All of the compilation units are bound together to create one program object.

MODULE
When SIMPLEPGM(*YES) is specified or implied, the name of the module created in QTEMP for each compilation unit is used with the MODULE parameter for CRTPGM each time it is invoked.

When SIMPLEPGM(*NO) is specified, all the names of the modules created in QTEMP for the compilation units are listed in the MODULE parameter for the CRTPGM command when it is invoked.

BNDDIR
Specifies the list of binding directories that are used in symbol resolution.

When *NONE (the default) is specified, no binding directory is used.

When binding-directory-name is specified, the name of the binding directory you specify is used in symbol resolution. The directory name can be qualified with one of the following library values:

*LIBL
The system searches the library list to find the library where the binding directory is stored. This is the default.

*CURLIB
The current library for the job is searched. If no library is specified as the current library for the job, library QGPL is used.

*USRLIBL
Only the libraries in the user portion of the job's library list are searched.

library-name
Specify the name of the library to be searched.
ACTGRP
Activation group specified is used
REPLACE
The REPLACE option specified in the CRTBNDCBL command is used
USRPRF
The USRPRF option specified in the CRTBNDCBL command is used
AUT
The AUT option specified in the CRTBNDCBL command is used
TEXT
The TEXT option specified in the CRTBNDCBL command is used
TGTRLS
The TGTRLS option specified in the CRTBNDCBL command is used

The default values are used for all of the remaining parameters of CRTPGM when it is invoked from the CRTBNDCBL command. For a description of these default values Refer to the CRTPGM command in the CL and APIs section of the Programming category in the iSeries 400 Information Center at this Web site -http://publib.boulder.ibm.com/pubs/html/as400/infocenter.htm.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]