HP RPG/XL Programmer's Guide (30318-90001)

A: 1
Appendix A Migrating to HP RPG
This chapter gives information about converting existing RPG programs to
run under the MPE XL operating system.
If your RPG programs are currently running on an IBM system, read the
section that follows titled "Migrating from IBM RPG". If your RPG
programs are currently running under the HP MPE V operating system, read
the section that follows titled "Migrating from MPE V RPG".
Migrating from IBM RPG
Converting IBM S/34 and S/36 RPG programs to run under MPE XL consists of
four steps. First, you convert the programs on a system that runs MPE V
by using the HP product, TRANSFORM. Next, you manually convert certain
features that are not converted by TRANSFORM. Then, you recompile the
programs under MPE V. Finally, you must STORE the programs onto tape,
then RESTORE them onto the system that runs MPE XL. These steps are
discussed in more detail below:
Step: Description:
1. TRANSFORM performs the following primary tasks when converting
IBM RPG S/34 and S/36 programs to run on an MPE V system:
* It translates IBM RPG source programs to HP RPG.
* It generates HP RPG source files for IBM DFU files.
* It translates IBM procedure files into PROCMON procedure
files.
* It translates IBM message files into a format compatible
with the HP message file produced by MAKECAT.
* It transfers data files to the HP 3000, converting
sequential and ISAM files to MPE and KSAM file formats.
For complete information about TRANSFORM, see the
TRANSFORM/3000 Reference Manual
.
2. Since HP RPG is approximately 95% compatible with IBM RPG,
TRANSFORM can convert most features automatically. However,
for those DFU features that are not converted, you must
manually modify the generated source programs to include those
features. The
TRANSFORM/3000 Reference Manual
lists the
features that you must convert manually.
3. Compile the HP RPG programs generated by TRANSFORM (compile
them on the system running MPE V).
4. STORE the compiled programs onto tape, and then RESTORE the
files onto the system running MPE XL. (See the instructions in
the MPE XL migration guides for information on how to do
this.) HP RPG programs run under MPE XL in compatibility mode
only.
RPG Features That Are New
HP RPG extends the features found in IBM System/3 and System/360 DOS RPG
II to include: