HP 3000 Manuals

Migrating from MPE V RPG [ HP RPG/XL Programmer's Guide ] MPE/iX 5.0 Documentation


HP RPG/XL Programmer's Guide

Migrating from MPE V RPG 

This section lists the features that are not supported when you compile
and run a program under MPE XL. To run RPG programs in compatibility mode
under MPE XL, STORE them onto tape then RESTORE them onto the MPE XL
system.  (See the MPE XL migration guides for complete information about
how to do this.)

To convert RPG V programs to RPG XL, first STORE them onto tape.  Then
make any changes to the program to reflect the features that are no
longer supported (see the next section).  Finally, recompile the programs
using the RPG XL compiler.

RPG MPE V Features That Are Not Supported by RPG XL 

Certain RPG features that are supported under MPE V are not supported
under MPE XL. They are:

 *  KSAM record-level locking

    If a program contains KSAM record-level locking, RPG XL emits a
    warning and defaults to file locking.

 *  ISAM simulation using TurboIMAGE

    This facility provided indexed sequential file access capability
    before KSAM was available.  You must manually convert ISAM simulation
    code to other file access methods before compiling under MPE XL.

 *  Card Reader/Punch Options

    Punched card devices are no longer supported.  You must manually
    convert code related to these devices before compiling under MPE XL.

 *  Automatic Program Segmentation

    HP RPG does not segment object programs.

 *  Record Number Conversions

    The RPGCV, ERPGC and EXTCV Calculation Specification operations are
    not available.

 *  $EDIT Compiler Subsystem Command

    The $EDIT compiler subsystem command is not available in RPG XL. RPG
    XL will emit a warning and ignore the record.

 *  $CONTROL Compiler System Command Options

    Certain $CONTROL compiler system command options are not supported by
    RPG XL. RPG XL will emit a warning message when an unsupported
    command option is encountered and will ignore the option.  The
    unsupported command options are KSAM, OPT1, OPT2, SEG= and USLINIT.

    For programs that contain these options, run the RPGCONV conversion
    utility.  RPGCONV removes the options and produces an updated source
    program.  To run RPGCONV, enter the following command using the
    appropriated filenames,

    :RPGCONV old_source_prog new_source_prog 

 *  External Subroutines

    External subroutines called from RPG XL must be written in a language
    that can be compiled in native mode (HP C or HP Pascal, for example).
    Refer to the HP RPG/XL Reference Manual for information on linking
    these procedures into your program.

 *  User-ISAM

    This feature allowed users to write their own ISAM routine and place
    place it in the RPG library.  User-ISAM is not available in MPE XL.



MPE/iX 5.0 Documentation