HP RPG/iX Utilities Reference Manual (30318-90006)
2- 154
editing session (6).
>
(1) >FILE SIMCAL
(2) Enter new file name followed by additional number of records.
DIRSIM 10
File opened.
>LIST 1/6
1 00011H
(3) 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
6 00016I OR 03 1 CM
(4) >CHANGE ;DISK; TO ;TAPE; IN ALL
2 00012FINPUT IP F 72 TAPE
3 00013FOUTPUT O F 72 TAPE
Changes completed.
(5) >BEGIN
Ready to begin new session.
>LIST ALL
(6) Error 65: There is no edit file.
The user is now able to create the new data file mentioned in the last example. The ADD command is
given, and data records are added (1). The work file is stored to a permanent file with the KEEP command.
The filename, DATAFILE, already exists, so RISE issues a safety prompt (2).
Finally, DIRSIM is again accessed for direct editing with the FILE command (3). The first 6 lines are
listed (4). The listing shows that the changes were made permanent to DIRSIM when "DISK" was changed
to "TAPE" (4) previously.
>ADD
(1) Creating work space file.
1 :DATA RECORD ONE
2 :DATA RECORD TWO
3 :DATA RECORD THREE
4 :<Control Y>
>K DATAFILE
(2) File exist already, purge old DATAFILE?YES
Keep completed.
File name is DATAFILE
>