Appendix C. CRTBNDCBL COMMAND AND PROCESS STATEMENT

CRTBNDCBL COMMAND

The CRTBNDCBL (Create Bound COBOL) command is used to compile a single ILE COBOL/400 program (source member) into a program object (Type *PGM).

OPTION 14 ON WORK WITH MEMBERS USING PDM SCREEN

The Work with Members Using PDM screen, shown in Figure C.1, illustrates how a screen option (option 14) can be used to compile an ILE COBOL/400 program. The number 14 is entered on the option line beside the source ILE COBOL/400 program (CPCH02A) that is to be compiled. Notice that option 14 is not listed in the option list at the top of the screen. On many screens, like the Work with Members Using PDM screen, there are more options than can be displayed on the screen at one time. The F23 key (More options) can be used to display the other options that are available.

Using option 14 to compile an ILE COBOL/400 program.

Figure C.1. Using option 14 to compile an ILE COBOL/400 program.

When option 14 is used to compile an ILE COBOL/400 program from the Work with Members Using PDM screen, OS/400 will automatically submit, to the batch queue, the CRTBNDCBL command.

PROMPTING THE CRTCBNCBL COMMAND

Another method used to compile an ILE COBOL/400 program is to enter CRTCBNCBL on the command line and press F4 (Prompt) to display the prompt screen. Once the parameters are entered into the prompt screen, the command is submitted.

An example of the prompt screen for the CRTCBNCBL command is illustrated ...

Get PROGRAMMING IN COBOL/400: 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.