Midrange Systems Design - IBM iSeries i5

Support Sales Home

Convert RPG 3 to RPG4 LE

Download Source   Shareware

 

This program simplifies converting programs from RPG 3 to 4. Example:

                             Work with Members Using PDM                 S10158CR

 File  . . . . . .   QSRC
   Library . . . .     MSD04                Position to  . . . . .

 Type options, press Enter.
  2=Edit         3=Copy  4=Delete 5=Display       6=Print     7=Rename
  8=Display description  9=Save  13=Change text  14=Compile  15=Create module...

 Opt  Member      Type        Text
 CV   AMCALEN     RPG         Calendar, select day of month
 __   CVTRPG4     CLP         Convert to RPG 4
 __   INSTALL     CLP         Member added by copy file





                                                                         Bottom
 Parameters or command
 ===> _____________________________________________________________
 F3=Exit          F4=Prompt             F5=Refresh            F6=Create
 F9=Retrieve      F10=Command entry     F23=More options      F24=More keys  

Put "CV" next to an RPG program and press Enter.

                              Work with Members Using PDM                 S10158CR

 File  . . . . . .   QSRC
   Library . . . .     MSD04                Position to  . . . . .

 Type options, press Enter.
  2=Edit         3=Copy  4=Delete 5=Display       6=Print     7=Rename
  8=Display description  9=Save  13=Change text  14=Compile  15=Create module...

 Opt  Member      Type        Text
 __   AMCALEN     RPGLE       Calendar, select day of month
 __   CVTRPG4     CLP         Convert to RPG 4
 __   INSTALL     CLP         Member added by copy file





                                                                         Bottom
 Parameters or command
 ===> __________________________________________________________
 F3=Exit          F4=Prompt             F5=Refresh            F6=Create
 F9=Retrieve      F10=Command entry     F23=More options      F24=More keys

Notice how example program AMCALEN type changed from RPG to RPGLE. The source file length must be 112. Add the following to PDM

CV CVTRPG4 LIB(&L) FILE(&F) MBR(&N)

/* Installation instructions */
/* 1. Transfer to a source file */
/* 2. Change the member type to "CL" not clp */
/* 3. Setup PDM user option RB - Run Batch DB Job */
/* sbmdbjob file(&l/&f) mbr(&n) jobq(QBATCH) */
/* 4. RB next to the source member */
/* If you don't have pdm, type in the command on line 3 */