IBM AS/400 manual Wont Do, Converting Your Source, What the Conversion

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 406
Image 406
Converting Your Source

Converting Your Source

In addition to object-authority requirements, there may be additional requirements. Each converted source program is, on average, about 25 p larger than the size of the program before conversion. To use the Co you need sufficient storage to store the converted source files.

What the Conversion

Aid

Won't Do

 

 

 

¹

The

Conversion

Aid

does

not

support conversion from the RPG IV format

 

to

the RPG

III

or

RPG/400

format.

¹The RPG IV compiler does not support automatic conversion of RPG II

RPG/400 source members to the RPG IV sourceat compileformat.time

¹ The

Conversion

Aid

does not

support

converting

RPG

II

source

programs

the

RPG

IV

source

format.

However, youRPG

IIcanto useRPG IIItheCon-

 

version

Aid

first

and

then the RPG

III

to

RPG

IV

Conversion

Aid.

¹The Conversion Aid does not re-engineer source code, except where

(for example, the number of conditioning indicators.)

¹The Conversion Aid does not create files. The log file and the out exist prior to running it.

Converting Your Source

This section explains how to convert source programs to the RPG IV fo discusses the command CVTRPGSRC, which starts the Conversion Aid, and how to use it.

To convert your source code to the RPG IV format, follow these gene

1. If

you

use

a

data area

as a control specification, you must cr

area

in

the

RPG

IV

format.

Refer to the chapter ILEon

control

spec

RPG

for

AS/400

Referencefor

more

information.

 

 

 

 

 

2. Create a log file, if necessary.

 

 

 

 

 

 

Unless

you specify

LOGFILE(*NONE),

there

must

be

a log file for the

sion Aid to access. If you

do

not

have

one,

then

you

can

create

the CRTDUPOBJ command. For more information,

see

“The

Log

File”

on

page 381

and

“Using

the

Log

File” on

page 396.

 

 

 

 

3. Create the file for the converted source members.

The

Conversion Aid will not create any files. You must create

the

o

the

converted source prior

to running the CVTRPGSRC command. The

recom-

mended name and record length for the

output

file is

QRPGLESRC

and 1

characters respectively. For

additional

file

information

see “File

Cons

on

page 380.

 

 

 

 

 

 

4. Convert your source using the CVTRPGSRC command.

You need to enter the name of the file and member to be convert accept the defaults, you will get a converted member in the file The name of the member will correspond to the name of the unconvert source member. /COPY members will not be expanded in the converted member, unless it is of type RPT or RPT38. A conversion report will ated.

See “The CVTRPGSRC Command” on page 383 for more information.

382 ILE RPG for AS/400 Programmer's Guide

Page 406
Image 406
IBM AS/400 manual Wont Do, Converting Your Source, What the Conversion