HP 9000 200 Series Manual page 101

Using the basic 5.0/5.1 system
Table of Contents

Advertisement

"Prattle" is an acceptable protect code, since it starts with "Pr." Note that we do not
include a protect code in the new file name. If you do, the system ignores it since the
old protect code is passed to the new file name. FILE2 still has the protect code "Pr".
To rename the file again, we might write:
RENAME "FILE2<Pr>" TO "FILE3"
Renaming a file has the effect of changing the file name in the directory and leaving
everything else intact.
In addition to using the PROTECT statement, you can also assign a protect code to a
BDAT file when you create it. For example:
CREATE BOAT "Example<xx>",10
The statement creates a IO-record file called "Example" and gives it a protect code of
"xx". You can also do this to PROG files with the STORE statement. Since ASCII files
cannot be protected, a protect code cannot be included in any CREATE ASCII, SAVE,
or RE-SAVE statement.
To change a protect code, simply execute a new PROTECT statement. To change the
protect code of "Example" to "yy," execute:
PROTECT "Example<xx>","yy"
Note that you must include the current protect code in the file specifier.
To completely remove a protect code from a file, PROTECT the file with a code consisting
of two blanks. For example, to remove the protect code from file "Example," execute:
PROTECT "Example<yy>","
When specifying a file that does not have a protect code, you can either ignore the code
entirely or include a code of two spaces:
PURGE "Example"
or
PURGE "Example< >"
U sing Directories and Files 5- 23

Advertisement

Table of Contents
loading

This manual is also suitable for:

9000 300 series

Table of Contents