Using the Conversion Report

The Conversion Aid generates a conversion report if you specify the CVTRPT(*YES) parameter on the CVTRPGSRC command. The spooled file name is the same as the file name specified on the TOFILE parameter.

The conversion report consists of four parts:

  1. CVTRPGSRC command options
  2. source section
  3. message summary
  4. final summary

The first part of the listing includes a summary of the command options used by CVTRPGSRC. Figure 223 shows the command summary for a sample conversion.

Figure 223. Command Summary of Sample Conversion Report
5769WDS V5R2M0  020719 RN         IBM ILE RPG    ISERIES1    08/15/02 20:41:35     Page 1
  Command  . . . . . . . . . . . . :   CVTRPGSRC
    Issued by  . . . . . . . . . . :     DAVE
  From file  . . . . . . . . . . . :   QRPGSRC
    Library  . . . . . . . . . . . :     MYLIB
  From member  . . . . . . . . . . :   REPORT
  To file. . . . . . . . . . . . . :   QRPGLESRC
    Library  . . . . . . . . . . . :     MYLIB
  To member  . . . . . . . . . . . :   *FROMMBR
  Log file . . . . . . . . . . . . :   *NONE
    Library  . . . . . . . . . . . :
  Log member . . . . . . . . . . . :   *FIRST
  Expand copy members. . . . . . . :   *NO
  Print conversion report  . . . . :   *YES
  Include second level text. . . . :   *YES
  Insert specification template. . :   *YES

The source section includes lines that have informational, warning, or error messages associated with them. These lines have an asterisk (*) in column 1 for ease of browsing in SEU. The message summary contains all three message types.

Two informational messages which may be of particular interest are:

All /COPY members in an program must be converted in order for the corresponding ILE RPG program to compile without errors. Similarly, you may want to convert all members related by CALL at the same time. Use this part of the report to assist you in identifying these members. Figure 224 shows the source section for the sample conversion.

Figure 224. Sample Source Section of Conversion Report
5769WDS V5R2M0  020719 RN         IBM ILE RPG                  ISERIES1    08/15/02 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 ---------------------------><-------------- Comments --------------> 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   * * * * *

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

Figure 225. Sample Message Summary of Conversion Report
5769WDS V5R2M0  020719 RN         IBM ILE RPG                             ISERIES1    08/15/02 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 to
                     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   * * * * *

The final summary of the listing provides message and record statistics. A final status message is also placed in the job log. Figure 226 shows the messages section for the sample conversion.

Figure 226. Sample Final Summary of Conversion Report
                            F i n a l   S u m m a r y
  Message Totals:
    Information  (00) . . . . . . . :        2
    Warning      (10) . . . . . . . :        0
    Severe Error (30+)  . . . . . . :        1
    ---------------------------------  -------
    Total . . . . . . . . . . . . . :        3
  Source Totals:
    Original Records Read . . . . . . :        3
    Converted Records Written . . . . :        4
    Highest Severity Message Issued . :       30
         * * * * *   E N D   O F   F I N A L   S U M M A R Y   * * * * *
         * * * * *   E N D   O F   C O N V E R S I O N   * * * * *


[ Top of Page | Previous Page | Next Page | Contents | Index ]