IBM AS/400 manual Run-time Differences, Resolving Conversion Problems

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 427
Image 427

Resolving Conversion Problems

 

 

IDSONE

 

E DSEXTREC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I

 

 

CHARACTER

 

 

 

 

CHAR

 

 

 

 

 

 

 

 

 

 

I I

 

'XYZ'

 

 

 

 

 

CHAR

 

 

 

 

 

 

 

 

 

 

C

 

 

CHAR

 

DSPLY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C

 

 

 

 

SETON

 

 

 

LR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure

210. RPG III source with renamed and initialized external subfield

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D DSONE

E DS

 

 

 

EXTNAME(EXTREC)

 

 

 

 

 

 

 

 

 

D

CHAR

E

 

 

 

 

EXTFLD(CHARACTER)

 

 

 

 

 

 

 

 

 

D

CHAR

E

 

 

 

 

INZ('XYZ')

 

 

 

 

 

 

 

 

 

 

C

 

CHAR

 

DSPLY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C

 

 

 

SETON

 

 

 

 

 

 

 

LR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure

211.

RPG IV source with two definitions for renamed subfield

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D DSONE

E DS

 

 

 

EXTNAME(EXTREC)

 

 

 

 

 

 

 

 

 

D

CHAR

E

 

 

 

 

EXTFLD(CHARACTER) INZ('XYZ')

 

 

 

 

 

 

 

C

 

CHAR

 

DSPLY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C

 

 

 

SETON

 

 

 

 

 

 

 

LR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure

212.

Corrected RPG IV source with a single definition

 

 

 

 

 

Run-time Differences

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If you have prerun-time arrays that overlap

in

data

structures,

the

 

these

arrays at

run

time

may

be

different

in

RPG III and in RPG

 

in

order

can

cause

the

data

in

the

overlapping

section

to

differ.

 

the

arrays

are loaded is the order in which

they

are encountered

 

order may have changed when

the

arrays

were

been

merged

with

the

 

during

conversion.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

In

general,

you

should

avoid

situations where an application consists

 

ILE

programs

that are split across the OPM default activation group a

 

activation

group.

When

spilt across

these

two

activation

groups, you

 

OPM

behavior

with

ILE

behavior

and your results may be hard to pre

 

Chapter 3,

“Program

Creation

Strategies”

on ILEpageConcepts23 orfor

further

 

 

information.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Appendix B. Using the RPG III to RPG IV403 Conversion Aid

Page 427
Image 427
IBM AS/400 Run-time Differences, Resolving Conversion Problems, RPG IV source with two definitions for renamed subfield