IBM AS/400 manual Your, Sample Source Section of Conversion Report

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 419
Image 419

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Analyzing

Your

Conversion

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5769RG1 V4R4M0

990521 RN

 

IBM ILE RPG

 

 

 

 

 

 

 

AS400S01

 

12/30/99 20:41:35

Page

2

From file . .

.

. . . .

.

. . . :

 

MYLIB/QRPGSRC(REPORT)

 

 

 

 

 

 

 

 

 

 

 

To file

. . . .

.

. . . .

.

. . . :

 

MYLIB/QRPGLESRC(REPORT)

 

 

 

 

 

 

 

 

 

 

 

Log file . . .

.

. . . .

.

. . . :

 

*NONE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C o n v e r s i o n

R e p o r t

 

 

 

 

 

 

 

 

 

 

 

 

Sequence

<-----------------------

 

 

Source Specifications ---------------------------

 

 

 

 

><

--------------

Comme￿nts --------------

> Page

 

Number

....1....

+

....2....

+

....3....

+

....4....

+....

5....

+....

6....

+....

7....

+....

8....

+....

9

....+...10

....+...11....

+...12 Line

 

000002

C

 

 

 

CALL

 

PROG1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*RNM0511

00 CALL operation code found.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

000003

C/COPY COPYCODE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*RNM0508

00 /COPY compiler directive found.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

000004

C

 

 

 

FREE

 

PROG2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*RNM0506

30 FREE operation code is not

 

supported in RPG IV.￿

 

 

 

 

 

 

 

 

 

 

 

* * * * *

 

E N D

O F S O U R C E

* * * * *

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure

197.

Sample Source Section of Conversion Report

 

 

 

 

 

 

 

 

 

The message summary of the listing shows you the different messages issued. If you specify SECLVL(*YES), second-level messages will appear message summary. Figure 198 shows the messages section for the sample version, including second-level messages.

5769RG1 V4R4M0

990521 RN

 

IBM ILE RPG

 

AS400S01

12/30/99 20:41:35

Page

2

 

 

M e s s a g e

S u m m a r y

 

 

 

 

Msg id

Sv Number Message text

 

 

 

 

 

 

 

*RNM0508 00

1 /COPY compiler directive found.

 

 

 

 

 

 

Cause . . . . . :

In order for this RPG IV source to

 

 

 

 

 

compile correctly, ensure that all /COPY source members

 

 

 

 

 

included in this source member have also been converted t￿o

 

 

 

 

 

RPG IV.

 

 

 

 

 

 

 

 

 

Recovery

. . . :

Ensure that all /COPY source

 

 

 

 

 

members are converted prior to compiling in RPG IV. In some￿

 

 

 

 

 

cases, problems may result when attempting to convert and￿

 

 

 

 

 

compile source members that make use of the /COPY compiler￿

 

 

 

 

 

directive. If this situation results, specify *YES for the

 

 

 

 

 

EXPCPY parameter on the CVTRPGSRC command to expand the

 

 

 

 

 

/COPY member(s) into the converted source. For further

 

 

 

 

 

information see the ILE RPG for AS/400 Programmers Guide.

 

 

 

*RNM0511 00

1 CALL operation code found.

 

 

 

 

 

 

 

Cause . . . . . :

RPG specifications that contain CALL

 

 

 

 

 

operation codes have been identified because the user may￿

 

 

 

 

 

wish to:

 

 

 

 

 

 

 

 

 

-- change the CALL operation code to CALLB to take

 

 

 

 

 

advantage of static binding

 

 

 

 

 

 

 

-- convert all programs in an application to RPG IV.

 

 

 

 

 

Recovery

. . . :

Convert the CALL

 

 

 

 

 

 

operation code to a CALLB if you wish to take advantage of

 

 

 

 

 

static binding or convert the called program to RPG IV if

 

 

 

 

 

you wish to convert all programs in an application.

 

 

 

*RNM0506 30

1 FREE operation code is not supported in RPG IV.

 

 

 

 

 

Cause . . . . . :

The RPG III or RPG/400 program contains

 

 

 

 

 

the FREE operation code which is not supported in RPG IV.

 

 

 

 

 

Recovery

. . . :

Remove the FREE operation and replace

 

 

 

 

 

it with alternative code so that the programming logic is￿

 

 

 

 

 

not affected prior to compiling the converted source.

 

 

 

 

* * * * *

E N D

O F

M E S S A G E

S U M M A R Y

* * * * *

 

 

 

 

 

 

 

 

 

Figure

198.

Sample Message Summary of Conversion Report

 

 

 

The final summary of the listing provides message and record statisti status message is also placed in the job log. Figure 199 on page 396 messages section for the sample conversion.

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

Page 419
Image 419
IBM AS/400 manual Your, Sample Source Section of Conversion Report, Sample Message Summary of Conversion Report