A Closer Look At Hierarchical Directory Capabilities - HP 9000 200 Series Manual

Using the basic 5.0/5.1 system
Table of Contents

Advertisement

• In the CAT statement, specify the entire path to
CHARLIE,
starting at the root, by
beginning the path name with a slash ( / ). For example:
CAT "/PROJECTS/Project_one/CHARLIE"
This form assumes that you have already designated remote mass storage with some
form of the
MSI
statement. If you have not, use the form:
CAT "PROJECTS/Project_one/CHARLIE:REMOTE"
for an SRM disc
or
CAT "PROJECTS/Project_one/CHARLIE:. 700"
for an HFS disc
In the first example, the leading slash is not necessary, because including
:REMOTE
specifies the root as the beginning of the path. In the second example, the ": .
700"
is the volume specifier for the HFS disc.
• If you were in
MEMOS
(the directory immediately subordinate to
CHARLIE),
you could
use the" .. " notation (explained with directory path syntax in the BASIC Language
Reference manual). For example:
CAT" .. "
A Closer Look at Hierarchical Directory Capabilities
Directories are a type of file and, as such, can be:
• created with the CREATE DIR statement. When a directory is created, its location
in the hierarchical structure is fixed.
• cataloged with the CAT statement, renamed with the RENAME statement, and
protected with the PROTECT (SRM only) statement.
• "filled" with subordinate files and directories using the COPY, CREATE, CREATE
BDAT, CREATE ASCII, CREATE DIR, SAVE, STORE, RENAME, RE-SAVE,
and RE-STORE statements. Each subordinate file or directory is described in a
fixed-format record in its superior directory.
• opened and closed with the MASS STORAGE IS (MSI) statement. When a user's
MSI statement specifies a directory, any previously opened directory of that user is
closed and the new one is opened.
• "emptied" by removing all subordinate files and directories with the PURGE
statement.
• purged with the PURGE statement. You must close and empty a directory before
purging it.
Using Directories and Files
5-11

Advertisement

Table of Contents
loading

This manual is also suitable for:

9000 300 series

Table of Contents