IBM AS/400 manual The CVTRPGSRC Command, Converting Your Source, member, names, Logmbr*First

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 407
Image 407
The CVTRPGSRC Command

Converting Your Source

5.Check the log file or the error report for any errors. For more “Analyzing Your Conversion” on page 393.

6. If there are errors, correct them and go to step 4 on page 3

7. If

there are

no

errors, create your

program. For information on

ILE

RPG

programs,

see Chapter 6, “Creating

a Program with the

CRTBNDRPG

Command”

on

page 57.

 

8.If your converted source member still has compilation problems, the likely caused because your primary source member contains /COPY co

directives. You have two choices to correct this situation:

a. Reconvert your source member specifying EXPCPY(*YES) to expand c members into your converted source member.

b. Manually correct any remaining errors using the compiler listing a

Refer to “Resolving Conversion Problems” on page 398 for further info

9.Once your converted source member has compiled successfully, rete program before putting it back into production.

The CVTRPGSRC Command

To

convert

your

RPG

III or RPG/400 source to the

new

RPG

IV forma

CVTRPGSRC command to start the

Conversion

Aid.

Table 31

shows

the

parame

ters

of

the command

based

on

their

function.

 

 

 

 

 

 

 

 

 

 

 

 

 

Table

31. CVTRPGSRC Parameters and Their Default Values Grouped by Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Program

Identification

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FROMFILE

 

Identifies library and file name of RPG

source to

 

 

 

 

 

 

 

converted

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FROMMBR

 

Identifies which source members are to

be convert

 

 

 

 

TOFILE(*LIBL/QRPGLESRC)

 

Identifies library and file name of converted outp

 

 

 

 

 

 

 

 

 

 

 

 

 

TOMBR(*FROMMBR)

 

Identifies file

member

names

of

converted

source

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Conversion

Processing

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TOMBR

 

If *NONE is specified, then no file members are sa

 

 

 

 

 

 

 

 

 

 

 

 

EXPCPY(*NO)

 

Determines if /COPY statements are included in con-

 

 

 

 

 

 

 

verted

output

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INSRTPL(*NO)

 

Indicates if specification templates are to be in

 

 

 

 

 

 

 

converted

output

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Conversion

Feedback

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CVTRPT(*YES)

 

Determines whether to produce conversion report

 

 

 

 

 

 

 

 

 

 

 

 

 

SECLVL(*NO)

 

Determines whether to include second-level

 

message

 

 

 

 

 

 

 

text

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LOGFILE(*LIBL/QRNCVTLG)

 

Identifies log file for audit report

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LOGMBR(*FIRST)

 

Identifies which member of the

log

file

to

use f

 

 

 

 

 

 

 

report

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The

syntax

for

the

CVTRPGSRC command is shown below.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Job: B,I

Pgm:

B,I

REXX:

B,I

Exec

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

Page 407
Image 407
IBM AS/400 manual The CVTRPGSRC Command, Converting Your Source, member, names, Logmbr*First