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

2- 210
>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/3
1 00011H
SIMCAL
2 00012FINPUT IP F 72 DISK
3 00013FOUTPUT O F 72 DISK
Delete completed.
(3) >T SIMCAL
KEEP not done, CLEAR current work file?NO
Text cancelled.
(4) >KEEP BACKUP
Keep completed.
(5) File name is BACKUP
In the second example, the CHANGE command is used to replace one four-character string with another.
The results of the command, and an execution message, are then displayed (1). The TEXT command is
used with the NOW parameter and is executed (2). Note that no safety prompts were issued even though
changes were previously made. When LIST 1/8 is given, the first three lines are missing from the listed
lines because they were deleted in the first example (3). Next, line 5 is modified (4). The TEXT command
used with SIMCAL evokes the safety prompts because of the changes made to the file. When the prompt is
answered in the affirmative, the command is executed (5).
>CHANGE ;DISK; TO ;TAPE; IN ALL
2 00012FINPUT IP F 72 TAPE
3 00013FOUTPUT O F 72 TAPE
(1) Changes completed.
>TEXT BACKUP NOW
(2) Text completed.
>
(3) >L1/8
4 00014IINPUT AA 01 1 CA
5 00015I OR 02 1 CS
6 00016I OR 03 1 CM
7 00017I OR 04 1 CD
8 00018I OR 05
(4) >MS
5 00015I OR 02 1 CS
: RAND
5 00015I AND 02 1 CS
:
(5) >TEXT SIMCAL
KEEP not done, CLEAR current work file?YES
Text completed.
>
UNDEL
UNDELete restores lines that were erroneously deleted.