COBOL Manual for TNS/E Programs (H06.03+)

Language Elements
HP COBOL Manual for TNS/E Programs—520347-003
3-11
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.
Qualified Names
Every name that you reference in a COBOL program must be unique, either because
no other name has the same spelling (including hyphenation) or because the name is
part of a hierarchy of names (such as a data-name defined within a record). In the
latter case, you can qualify the name with one or more of the higher-level names. You
must specify enough higher-level names to make the name unique, but you need not
specify all levels. The most significant name in a hierarchy must have unique spelling,
because you cannot qualify it.
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.