COBOL Manual for TNS and TNS/R Programs
Input and Output Concepts
HP COBOL Manual for TNS and TNS/R Programs—522555-006
26-3
System File Names
volume-name
is a dollar sign ($) followed by an alphabetic character and up to six alphanumeric
characters. Example: $volume3. Default: default volume.
subvolume-name
is an alphabetic character followed by up to seven alphanumeric characters.
Example: subvol10. Default: default subvolume.
file-id
is an alphabetic character followed by up to seven alphanumeric characters.
Example: file1234.
An example of a permanent disk file name is \mynode.$volume3.subvol10.file1234. If
\mynode.$volume3.subvol10 is the default subvolume, then these are equivalent:
\mynode.$volume3.subvol10.file1234
$volume3.subvol10.file1234
subvol10.file1234
file1234
The default node, volume, and subvolume are established with the =_DEFAULTS
DEFINE and can be changed with TACL commands. For details, see the TACL
Reference Manual.
Temporary Disk File Names
The two ways to create a temporary disk file are:
•
In the file-control entry, with the clause SELECT … ASSIGN #TEMP
•
With the TACL command ASSIGN … #TEMP
Temporary disk files are named by the file system when a program creates them. The
program cannot specify a system file name for a temporary file. When the program
closes a temporary disk file, the file system purges it. For more information about
temporary disk files, see the Guardian Programmer’s Guide.
Nondisk File (Device) Names
Nondisk files are devices such as terminals, printers, magnetic tape drives, and data
communications lines. A nondisk file can be accessed by its name (the recommended
method) or its logical device number, both of which are assigned by system
management.
node-name
.
ldev-number
device-name
qualifier
VST641.vsd