HP RPG/iX Utilities Reference Manual (30318-90006)
2- 199
LIB=G Search segmented procedure libraries to satisfy external references during allocation in the
following order: group library, account public library, system library. Default is S.
LIB=P Search segmented procedure library to satisfy external references during allocation in the fol-
lowing order: account public library, system library. Default is S.
LIB=S Search system library only to satisfy external references during allocation. This is the de-
fault.
Purpose
The RUN command allows you to execute a prepared program. It operates in the same way that the MPE
command :RUN operates. Note that you can use the VERIFY RPG and VERIFY PREP commands to
compile and prepare your work file into a program file to be executed with this RUN command. (See
VERIFY.)
Execution mode: Line
Examples
The following are legal abbreviations which may be used with the RUN command and its param-
eters:
RU FCOPYPUB.SYS Run the FCOPY utility.
RU $OLDPASS;LIB= G; DEBUG Run the prepared program $OLDPASS; search
segmented procedure libraries beginning
with the group library to satisfy
external references during allocation;
issue a DEBUG call before the first
executable instruction of the program.
In the example the RUN command is used to run two prepared programs. SIMCAL is to be used as the
simple calculator it was designed to be, and it must be compiled, prepared, and run. Assume that SIMCAL
was compiled into a USL file named $OLDPASS with RISE's VERIFY RPG command. Now it must be
prepared using the Segmenter (or, alternatively, with the VERIFY PREP command). Initially, the
command to run the Segmenter subsystem is given (1). The HP banner is then brought to the screen (2).
The USL file is identified (3), and then prepared in a new program file (4). The user then leaves the
Segmenter subsystem with the EXIT command and RISE's banner is displayed (5).
Next, the input and output file equations are given for SIMCAL. Note that the user must supply the colon
(:) prompts (6). Following that, the RUN $OLDPASS executes SIMCAL (7).
Examples of SIMCAL's application follows: it is used to add (8), subtract (9), multiply (10), and divide (11).
The colon entered when the calculations are finished returns the user to RISE (12).
(1) >RUN SEGDVR.PUB.SYS
(2) HP32050A.01.03 SEGMENTER (C) HEWLETT-PACKARD CO. 1979
(3) -USL $OLDPASS
(4) -PREP $NEWPASS
(5) -EXIT
HP32104A.05.00 RPG INTERACTIVE SYSTEM ENVIRONMENT RISE
(C) HEWLETT-PACKARD CO. 1981 WED, SEP 16, 1981, 10:29 AM
(6) >:FILE INPUT=$STDIN
>:FILE OUTPUT=$STDLIST