COBOL Manual for TNS and TNS/R Programs

Language Elements
HP COBOL Manual for TNS and TNS/R Programs522555-006
3-12
COBOL Words
Special names for operating system files
A special name is a substitute (in the source program) for a certain operating
system file:
For more information on spooler collectors, see the Spooler Utilities Reference
Manual.
Special Name
Operating System File
Guardian OSS
#IN The file named in the IN
parameter of startup message of
current process.
The default input device (FD 0)—
do not use it in SELECT clauses
or the SPECIAL-NAMES
paragraph as you can in the
Guardian environment.
#OUT The file named in the OUT
parameter of startup message of
current process.
The default output device
(FD 1)—do not use it in SELECT
clauses or the SPECIAL-NAMES
paragraph as you can in the
Guardian environment.
#TERM Home terminal of current process.
#TEMP Temporary disk file on default volume.
Created during execution of an OPEN statement, purged during
execution of a CLOSE statement.
You cannot specify a volume name for #TEMP. The volume used for
#TEMP is the current default volume. If you want a temporary file on
another volume, either specify only the volume name or specify a
TACL ASSIGN command with only the volume name, for example:
ASSIGN a-file, $vol
#DYNAMIC File name specified with the run-time library routine COBOLASSIGN
or COBOL_ASSIGN_ during the execution of the current process.
Legal only in the SELECT clause of a file-control entry.
If you use #DYNAMIC as the file name in an ASSIGN command,
TACL accepts it, but does not make the file dynamically assignable,
and the file becomes unusable because it has an invalid name.