HP RPG/iX Utilities Reference Manual (30318-90006)
2- 182
38 00048O*END OF PROGRAM NAMED SIMCAL
:
(4) >KEEP BACKUP NOW UNN
Keep completed.
(5) >File name is BACKUP
>
In the second example, a file named TESTFILE is copied into the work file, TESTFILE was previously
stored as a permanent file with the UNNumbered parameter. Because sequence numbers are essential as
references in editing, they are appended automatically for the user's convenience (1). The CHANGE
command is used on TESTFILE, and an execution message informs the user that all the changes have
been made (2).
Entering EXIT causes safety prompts to appear because, if the EXIT is executed without a preceding
KEEP command, the changes made to the work file would not be saved. When the prompts are answered
negatively, the command is cancelled (3). KEEP is then tried, and the safety prompts displayed (4). This
time the user indicates that the permanent copy of TESTFILE should be overwritten by the edited work
file. The user enters the EXIT command, and this time it is safe to exit since the changes were kept in a
permanent file first (5).
>
>TEXT TESTFILE
(1) File is unnumbered, appending sequence numbers.
Text completed.
>CHANGE ;RESULT; TO ;OUTPUT; IN ALL
6 00021O 01 OPRND1 ADD OPRND2 OUTPUT 104
7 00022O 02 OPRND1 SUB OPRND2 OUTPUT
8 00023O 03 OPRND1 MULT OPRND2 OUTPUT
9 00024O 04N99 OPRND1 DIV OPRND2 OUTPUT H
10 00025O 04 99 Z-ADD0 OUTPUT
23 00038O OUTPUT 60 " .0 .
-"
(2) Changes completed.
>EXIT
KEEP not done. CLEAR current work file?NO
(3) Exit cancelled.
>KEEP
File exist already, purge old TESTFILE?YES
(4) Keep completed.
File name is TESTFILE
(5) >EXIT
LINE
LINE places you in Line Mode.
Form
LIN[E]
Purpose
This command places you in Line Mode. There are many advantages to using LINE Mode, among them
convenience and speed. The LINE command allows you to enter commands one at a time by pressing the
carriage return. Errors can be erased with the backspace key.
In Line Mode you see the results of commands being executed on the screen. For example, if you use the