HP 9000 200 Series Manual page 100

Using the basic 5.0/5.1 system
Table of Contents

Advertisement

LlF Protect Codes
With LIF directories, protect codes are two-character strings that can be assigned to
any BDAT, BIN, or PROG file with the PROTECT statement. The protect code, which
does not appear in the CAT display, must be specified to subsequently modify the file.
Protect codes are intended to prevent accidentally writing and purging files.
For example, to protect the file "SECRET" with the protect code "BS", use the
statement:
PROTECT "SECRET" ,"BS"
The protect code must subsequently be specified with the file name to allow access. For
example, to RENAME the previously protected file "SECRET", the statement is:
RENAME "SECRET<BS>" TO "SHHHH"
File specifiers in mass storage statements that write to a file or directory must include
the protect code, if the file has one. Mass storage statements that read a file or directory
do not require the protect code (e.g., CAT, LOAD, LOAD BIN, LOADSUB, GET, and
COPY).
To assign an I/O path name to the file named "SHHHH," you would now have to include
the protect code.
ASSIGl~
COPatIIl TO !!SHHHH<BS>!!
If you assign a protect code longer than two characters, the system will ignore everything
after the second (non-blank) character. For example, the protect codes LONGPASS,
LOST, and LOLLYGAG all result in the same protect code: LO. This rule holds both
for PROTECTing a file and for specifying the protect code in a file specifier. For instance:
PROTECT "FILE1","Protectl"
would assign the protect code "Pr" to FILEl. To rename the file, we could write:
RENAME "FILE1<Prattle>" TO "FILE2"
5=22
Using Directories and Files

Advertisement

Table of Contents
loading

This manual is also suitable for:

9000 300 series

Table of Contents