Download Print this page

HP 3000 Manual page 179

Mpe/ix computer systems, rpg/xl utilities
Hide thumbs Also See for 3000:

Advertisement

The "NOW" option ensures that the overwriting will take place immediately. It also disables the safety
prompts. It saves time but it should only be used when you are certain that the work file should replace
the permanent file. There is no provision for reconsidering changes once NOW is used. When you omit
NOW, and respond to the message informing you that the "filename" exists and asking if you wish to
overwrite the existing copy, you do have an opportunity to reconsider the replacement. However, there is a
slight delay involved.
Related Commands
A file which you KEEP may be copied back to the work file using the TEXT command so that you can edit
or add to it. To TEXT and KEEP a large RPG source file each time you have changes to make can entail
long delays. You will save time by editing a long file directly using the FILE/EXIT commands. See the
discussion of FILE for advantages and disadvantages of using the FILE/EXIT commands.
Execution mode: Line or Block
Examples
The following are legal abbreviations which may be used with the KEEP command and its parameters:
K FILE1 N
Copy the file named FILE1 into a permanent file.
FILE1 exists, overwrite the old copy with the contents
of the current work file without displaying safety prompts.
K NEWFILE
Copy the file named NEWFILE into a permanent file.
K N U
Copy the current work file into a permanent file
immediately without appended sequence numbers.
In the first example, SIMCAL is copied into the work file with the TEXT command. It is then copied to a
permanent file called BACKUP using the KEEP command, and the execution messages are displayed (1).
When lines 1 through 5 of the work file are deleted, and an attempt to KEEP BACKUP UNNumbered is
entered, safety prompts appear (2), giving the user a chance to reconsider the effects of overwriting the
original copy of BACKUP with the edited copy now in the work file. When the prompt is answered in the
affirmative, the KEEP command is executed (3). Line 38 is then modified, and KEEP BACKUP is entered
with the NOW and UNN parameters (4). NOW disables the safety prompts, and the command is executed
immediately (5).
>T SIMCAL
Text
completed.
>KEEP BACKUP
Keep
completed.
(1)
File name is BACKUP
>
>DELETE1/5
1
SIMCAL
2
3
4
5
Delete
(2)
>KEEP BACKUP UNN
File
exist already, purge old BACKUP?YES
Keep
completed.
(3)
File
name is BACKUP
>
>MODIFY LAST
38
00011 H
00012FINPUT
00013FOUTPUT
00014IINPUT
00015I
OR
completed.
00048O*END OF PROGRAM
:
IP
F
72
O
F
72
AA
01
1
CA
02
1
CS
RNAMED SIMCAL
If
DISK
DISK
2- 181

Advertisement

loading