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

2- 167
2 LINE 2
3 LINE 3
4 LINE 4
5 LINE 5
6 LINE 6
7 LINE 7
(3) >EXIT
END OF PROGRAM
:
In the fourth example, the TEXT command is used with SIMCAL, and the first five lines are listed (1).
Next, the five lines are deleted (2). When the user attempts to change work files to SIMCAL3, using the
FILE command, a safety prompt is displayed. The negative response results in a cancellation of the FILE
command (3).
SIMCAL, with the first five lines deleted, is then copied into a permanent file named SAVEFILE using the
KEEP command (4). Two execution messages are displayed (5). A DELETE ALL command is given. Note
that line 6 is the first in the file (6). <Control Y> is applied to halt the listing of the deleted lines but, as the
message indicates, it does not halt the deletion (7). The FILE SIMCAL3 command, this time with the
NOW parameter added to disable the safety prompts, is executed (8).
>TEXT SIMCAL
Text completed.
>
(1) >L 1/5
1 00011H
SIMCAL
2 00012FINPUT IP F 72 DISK
3 00013FOUTPUT O F 72 DISK
4 00014IINPUT AA 01 1 CA
5 00015I OR 02 1 CS
(2) >D 1/5
1 00011H
SIMCAL
2 00012FINPUT IP F 72 DISK
3 00013FOUTPUT O F 72 DISK
4 00014IINPUT AA 01 1 CA
5 00015I OR 02 1 CS
Delete completed.
>
>FILE SIMCAL3
(3) KEEP not done, CLEAR current work file?NO
File cancelled.
(4) >KEEP SAVEFILE