IBM AS/400 manual Command, Using, ¹ WRKOUTQ queue-name, Creating an OPM-Compatible, Object

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 85
Image 85

 

 

 

 

 

 

 

 

 

 

Using

the

CRTBNDRPG

Command

 

 

Note:

DFTACTGRP

must

be

set to *NO in order for you to enter a value

 

 

ACTGRP and

BNDDIR

parameters.

 

 

 

 

 

 

For

more

information

on

service

programs,

see

Chapter 8, “Creating

a

Ser

Program”

on

page 91.

 

 

 

 

 

 

 

 

 

 

Creating an OPM-Compatible

Program

Object

 

 

 

 

 

 

 

 

 

 

In

this

example

you

use the

CRTBNDRPG

command

to create an OPM-compati

program object from the source for

the payroll

program, shown

in

Figu

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 l produced.

Note: The setting of DFTACTGRP(*YES) is what provides the OPM compat- ibility. This setting also prevents you from entering a value ACTGRP and BNDDIR parameters. Furthermore, if the source conta any bound procedure calls, an error is issued and the compi

2. Type one of the following CL commands to see the listing that is

¹ DSPJOB and then select optionDisplay4 spooled( ) files

¹WRKJOB

¹WRKOUTQ queue-name

¹WRKSPLF

Chapter 6. Creating a Program with the CRTBNDRPG Command61

Page 85
Image 85
IBM AS/400 manual Command, Using, ¹ WRKOUTQ queue-name, Creating an OPM-Compatible, Object