IBM AS/400 manual Program Creation Strategies, Strategy 1 OPM-Compatible Application, Method

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 47
Image 47
OPM-Compatible Application

OPM-Compatible Application

Chapter 3. Program Creation Strategies

There are many approaches you can take in creating programs using an guage. This section presents three common strategies for creating IL using ILE RPG or other ILE languages.

1. Create a program using CRTBNDRPG to maximize OPM compatibility.

2. Create an ILE program using CRTBNDRPG.

3. Create an ILE program using CRTRPGMOD and CRTPGM.

The first

strategy

is

recommended

as a

temporary

one.

It

is

intend

have OPM applications and who, perhaps due to lack of time,

cannot

mov

applications

to

ILE

all at once. The second strategy can

also be

a

allows you

time

to

learn

more about

ILE,

but also

allows

you

to

immed

some of its features. The third strategy is more involved,

but

 

off

bility.

 

 

 

 

 

 

 

 

 

 

 

Both the first and second strategy make use of the one-step progra process, namely, CRTBNDRPG. The third strategy uses the two-step progr ation process, namely, CRTRPGMOD followed by CRTPGM.

Strategy 1: OPM-Compatible Application

Strategy 1 results in an ILE program that interacts well with OPM prog allows you to take advantage of RPG IV enhancements, but not all of enhancements. You may want such a program temporarily while you comple migration to ILE.

Method

Use the following general approach to create such a program:

1. Convert your source to RPG IV using the CVTRPGSRC command.

Be sure to convert all /COPY members that are used by the sourc converting.

2.Create a program object using the CRTBNDRPG command, specifying DFTACTGRP(*YES).

Specifying DFTACTGRP(*YES) means that the program object

will run

only

in

default

activation

group.

(The

default

activation group

is

the

activa

all

OPM

programs

are

run.)

As

a

result,

the program object will intera

OPM programs

in

the

areas

of

 

override

scoping,

open

scoping,

and

RCLRS

When

you

use

this

approach

you cannot

make use of ILE static bindi

means

that

you

cannot code a bound procedure

call

in

your

source,

use the BNDDIR or ACTGRP parameters on

the CRTBNDRPG

command

when

 

creating

this

program.

 

 

 

 

 

 

 

 

 

Copyright IBM Corp. 1994, 1999

23

Page 47
Image 47
IBM AS/400 manual Program Creation Strategies, Strategy 1 OPM-Compatible Application, Method