HP RPG/iX Utilities Reference Manual (30318-90006)

2- 146
(See:MPEcommand.)
RISE will respond with execution messages, mode changes, and banners to some of the commands. The
example below includes only the prompt for information to be used in running the calculator. Comments
appear to the right and are not part of your responses. Also, see the MPE Segmenter Reference Manual, for
more information on USL and program files.
---------------------------------------------------------------------------------------
>T[EXT] SIMCAL Copy SIMCAL to work file
>L[IST] A[LL] List contents for review
>V[ERIFY] R[PG] RPG compile the work file
>PRINT ALL RPGLIST Prints compilation listing offline
>RU[N] SEGDVR.PUB.SYS Run the Segmenter subsystem
-USL $OLDPASS Identify the USL file
-PREPARE $NEWPASS Prepare USL file in a new program file
-EXIT Leave the Segmenter subsystem
>:FILE INPUT=$STDIN Issue FILE equations for I/O
>:FILE OUTPUT-$STDLIST
>RU[N] $OLDPASS Execute SIMCAL
When SIMCAL executes, you will receive the following message:
SIMPLE CALCULATOR
Enter the data in the format:
C NNNDD NNNDD
Under C, you enter S (subtract), M (multiply), D (divid e), or A (add). Your operands may include three
whole numbers (NNN) and two decimals (DD).
After you enter the data in the prescribed format, SIMCAL produces the arithmetic answer and prompts
for more data.
When you have all the calculations you require, type ":" (colon), and you will exit from SIMCAL and return
to RISE. Do not type ":EOD" to end SIMCAL for it will also end RISE.
ADD
ADD allows you to add new lines to a work file.
Form
A[DD] [lb] [BY inc] [^^[form] [R[EPEAT] [n]]]