TAL Programmer's Guide
TACL ASSIGN Commands
File Names and TACL Commands
E–8 096254 Tandem Computers Incorporated
TACL ASSIGN
Commands
You can issue the TACL ASSIGN command before starting the compiler to substitute
actual file names for logical file names used in the source file. The TACL product
stores the file-name mapping until the compiler requests it.
ASSIGN commands fall into two categories:
Ordinary ASSIGN commands
ASSIGN SSV commands
Ordinary ASSIGN
Command
The ordinary ASSIGN command equates a file name with a logical file name used in
ERRORFILE, SAVEGLOBALS, SEARCH, SOURCE, and USEGLOBALS directives.
The compiler accepts only the first 75 ordinary ASSIGN messages.
In each ASSIGN command, specify a logical identifier followed by a comma and the
file name or a TACL DEFINE name:
ASSIGN dog, \a.$b.c.dog
ASSIGN cat, =mycat
If the file name is incomplete, the TACL product completes it from your current
default node, volume, and subvolume. For example, if your current defaults are
\X.$Y.Z, the TACL product completes the incomplete file names in ASSIGN
commands as follows:
Incomplete File Names Complete File Names
ASSIGN qq, cat ASSIGN qq, \x.$y.z.cat
ASSIGN ss, b.dog ASSIGN ss, \x.$y.b.dog
ASSIGN tt, $a.b.rat ASSIGN tt, \x.$a.b.rat.
If you use a TACL DEFINE name in place of a file name, the TACL product qualifies
the file name specified in the ADD DEFINE command when it processes the ASSIGN
command. Even if you specify new node, volume, and subvolume defaults between
the ADD DEFINE command and the ASSIGN command, the ASSIGN mapping still
reflects the ADD DEFINE settings.
Processing ASSIGN File Names
If you issue the following commands:
ASSIGN aa, $a.b.cat
ASSIGN bb, $a.b.dog
ASSIGN cc, =my_zebra
ADD DEFINE =my_zebra, CLASS MAP, FILE $a.b.zebra
TAL /IN mysource, OUT $s/ obj
the compiler equates SOURCE directives in MYSOURCE to files as follows:
?SOURCE aa !Equates to ?SOURCE $a.b.cat
?SOURCE cc !Equates to ?SOURCE $a.b.zebra
?SOURCE bb !Equates to ?SOURCE $a.b.dog
You can name new source files at each compilation without changing the contents of
the source file.