HP 3000 Manuals

Safeguards [ HP RPG/XL Utilities-Part 2 RISE ] MPE/iX 5.0 Documentation


HP RPG/XL Utilities-Part 2 RISE

Safeguards 

RISE has two important built-in safeguards which help to protect you from
two serious errors that you may accidentally make.  The first safeguard
is associated with the TEXT, FILE, EXIT, and BEGIN commands.  These
commands always clear the work file, and there is a danger that you might
clear or destroy a work file you have been editing because you entered
one of these commands without first keeping your recent changes to a
permanent file.  When there is a possibility that this might happen, RISE
will prompt you with the following question:

     "KEEP not done.  CLEAR current work file?"

Thus you are reminded that the changes you have made while editing will
not be saved if your TEXT, FILE, EXIT, or BEGIN is immediately executed.
You are given the opportunity to decide whether or not you wish to save
the changes first.  You may respond "NO" to the question if you want to
cancel the command that you entered; or you may respond "YES" if you do
want RISE to go ahead and clear the work file, executing your command
without saving your changes.

The second safeguard is associated with the KEEP command.  It protects
you from overwriting an existing permanent file.  If you try to KEEP the
contents of your work file to a name of a file that already exists, RISE
will prompt you as follows:

     "File exists already.  Purge old 'filename'?"

This gives you the opportunity to decide whether or not you want to
overwrite the pre-existing permanent file.  If you do, you respond "YES"
and RISE will execute your KEEP command.  If you do not want to lose the
contents of the pre-existing file, you respond "NO" and RISE will cancel
the execution so that you can KEEP to a different file name if you wish.

There will be occasions when you have decided beforehand that immediate
execution of the TEXT, FILE, EXIT, BEGIN, and KEEP commands is precisely
what you want.  In such an instance, the prompts would cause unnecessary
delays.  You have an optional parameter called "NOW" which saves time by
disabling RISE's safeguards.  If you specify "NOW" with any of these five
commands, RISE will execute immediately without prompting you to
reconsider.  You use the parameter when you are certain of the results
you want.



MPE/iX 5.0 Documentation