FORTRAN Reference Manual
Introduction to File I/O in the HP NonStop
Environment
FORTRAN Reference Manual—528615-001
5-5
File Properties
HP File Names
You can specify a file name when you connect a file to a unit as in the following
example:
OPEN (15, FILE='newaccts', FORM='FORMATTED', STATUS='NEW')
A file name specifies the location of a file and consists of four 8-character names
separated by periods. A file name consists of a:
•
Node name (system name)
•
Volume name
•
Subvolume name
•
File ID
Here is an example of a fully qualified file name:
\ANODE.$AVOLUME.MYSUB.MYFILE
Figure 5-1 illustrates the preceding disk file name model.
In a network, the file name can also include a node name, as in the following example:
\PARIS.$SALES.JONES.PROGRAMS
The preceding file name identifies the file identifier PROGRAMS, in the subvolume
JONES, in the volume $SALES, at node \PARIS. As shown in the preceding example,
you must insert a period between file name components.
Figure 5-1. Disk File Organization
SVOL1 SVOL2 ACCT1
FILE A
FILE C
FILE B
FILE A
MYFILE
INFILE
OUTFILE
MYFILE
Disk File
Indentifiers
VST0501.vsd
1
2
3
Full File Name = "$VOL1.SVOL1.FILEA"
Full File Name = "$VOL1.SVOL2.FILEA"
Full File Name = "$VOL1.ACCT1.INFILE"
Legend
1 2
3
$VOL1
Volume Name
Subvolume Names
~
~
~
~










