HP 9000 200 Series Manual page 156

Using the basic 5.0/5.1 system
Table of Contents

Advertisement

When both the starting and ending lines are specified, any arbitrary portion of a program
can be saved. Executing the following command saves that portion of a program that
is between the lines labeled "Sort" and "Printout" (inclusive) in an ASCII file called
"Sorter" .
SAVE IISorterll.Sort.Printout
There is also a RE-SAVE statement that allows an existing file to be replaced by a newly
created file with the same name. For example, to update an ASCII file called "Analysis"
with a new version of the program, the following command would be used.
RE-SAVE IIAnalysis ll
Creating Files Compatible with vi
If you want to create a file that you can edit with the HP-UX system's
vi editor, here
are the steps to take:
1. Use the CREATE statement to create a file of type HP-UX:
CREATE lIux_file ll .1
(number of records is not important)
2. Use the RE-SAVE statement to save the program in the file you just created:
RE-SAVE lIux_file ll
The reason for the RE-SAVE (instead of just SAVE) is that the BASIC system
would have created an ASCII type file with SAVE, while the RE-SAVE will maintain
the file type (which in this case is a file of type HP-UX).
Editing and Storing Programs
6-35

Advertisement

Table of Contents
loading

This manual is also suitable for:

9000 300 series

Table of Contents