Using Store; Using Save - HP 9000 200 Series Manual

Using the basic 5.0/5.1 system
Table of Contents

Advertisement

Using STORE
The following command creates a program file called ';MyProgFile"
OIl
the current default
volume:
STORE "MyProgFile".
If you to get error 54, that means that there is already a file on the disc with the name
you are using. In this event, you have three choices.
• Pick a name that doesn't already exist. To determine which file names are already
being used, execute a CAT command.
• You may want to replace the existing file with a new one (like when you update
program files with a new, improved version). To replace an existing file, use the
RE-STORE statement. For example. the command to replace a program file called
"BEAMS" is:
RE-STORE "BEAMS"
Note that the hyphen must be used in the RE-STORE statement. (RESTORE
without a hyphen is used to reset the pointer associated with DATA statements:
see the "Data Storage and Retrieval" chapter of BASIC Programming Techniques
for details.)
• PURGE the old file, then STORE the new one.
Using SAVE
The SAVE operation is similar to the STORE operation in that it stores the current
program in a file; however, it has one additional feature. The SAVE statement allows
line identifiers that specify what portion of the program you want to save. This is
especially helpful when moving or appending program segments during major editing
operations. Here are some examples of using the SAVE statement.
To save all of a program in an ASCII file called "WHALES". on the current default
volume, execute the following command:
SAVE "WHALES"
The following command saves the last part of a program, from line 500 to the end. in an
ASCII file called "LastPart".
SAVE "LastPart",500
6-34
Editing and Storing Programs

Advertisement

Table of Contents
loading

This manual is also suitable for:

9000 300 series

Table of Contents