IBM AS/400 Frozen Dessert Maker User Manual


 
Using the CRTBNDRPG Command
Note: DFTACTGRP must be set to *NO in order for you to enter a value for the
ACTGRP and BNDDIR parameters.
For more information on service programs, see Chapter 8, “Creating a Service
Program” on page 91.
Creating an OPM-Compatible Program Object
In this example you use the CRTBNDRPG command to create an OPM-compatible
program object from the source for the payroll program, shown in Figure 32 on
page 62.
1. To create the object, type:
CRTBNDRPG PGM(MYLIB/PAYROLL)
SRCFILE(MYLIB/QRPGLESRC)
TEXT('ILE RPG program') DFTACTGRP(*YES)
The CRTBNDRPG command creates the program PAYROLL in MYLIB, which
will run in the default activation group. By default, a compiler listing is
produced.
Note: The setting of DFTACTGRP(*YES) is what provides the OPM compat-
ibility. This setting also prevents you from entering a value for the
ACTGRP and BNDDIR parameters. Furthermore, if the source contains
any bound procedure calls, an error is issued and the compilation ends.
2. Type one of the following CL commands to see the listing that is created:
DSPJOB and then select option 4 (
Display spooled files
)
WRKJOB
WRKOUTQ
queue-name
WRKSPLF
Chapter 6. Creating a Program with the CRTBNDRPG Command 61