A SERVICE OF

logo

508 Chapter 6
Command Definitions P-R
RPG
RPG
Compiles an RPG/V program in compatibility mode. RPG/V is not part of the HP 3000
Series 900 Computer System Fundamental Operating Software and must be purchased
separately.
Syntax
RPG[ textfile][,[uslfile][,[listfile][,[masterfile][,[newfile]]]]]
Parameters
textfile The actual file designator of the input file from which the source program
is read. This can be any ASCII input file. The formal file designator is
RPGTEXT. Default is $STDIN.
uslfile The actual file designator of the user subprogram library (USL) file to
which the object program is written. This can be any binary input file with
a file code of USL or 1024. Its formal file designator is RPGUSL. If the uslfile
parameter is omitted, the object code is saved to the temporary file
$OLDPASS. If entered, this parameter refers to a file created in one of four
ways:
By using the MPE/iX SAVE command to save the default USL file
created during a previous compilation.
By building the USL with the MPE segmenter -BUILDUSL command.
Refer to the MPE Segmenter Reference Manual (30000-90011).
By creating a new USL file with the MPE/iX BUILD command and
specifying a file code of USL or 1024.
By specifying a nonexistent uslfile parameter, thereby creating a
permanent file of the correct size and type.
listfile The actual file designator of the file on which the program listing is
written. This can be any ASCII output file. The formal file designator is
RPGLIST. Default is $STDLIST.
masterfile The actual file designator of the master file to be merged against textfile to
produce a composite source. This can be any ASCII input file. The formal
file designator is RPGMAST. Default is that the master file is not read, and
input is read from textfile, or from $STDIN if textfile is not specified. If two
files being merged have identical line numbers, the lines from textfile or
from $STDIN overwrite those in masterfile.
newfile The actual file designator of the file produced by merging textfile and
masterfile. This can be any ASCII output file. The formal file designator is
RPGNEW. Default is that no file is written.