pTAL Reference Manual (H06.08+)

Disk File Names and HP TACL Commands
HP pTAL Reference Manual523746-006
B-8
ASSIGN
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 an HP TACL DEFINE name:
ASSIGN dog, \a.$b.c.dog
ASSIGN cat, =mycat
If the file name is incomplete, the HP TACL product completes it from your current
default node, volume, and subvolume. For example, if your current defaults are
\X.$Y.Z, the HP TACL product completes the incomplete file names in ASSIGN
commands as follows:
If you use an HP TACL DEFINE name in place of a file name, the HP 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.
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
pTAL /IN mysource, OUT $s/ obj
the compiler equates SOURCE directives in MYSOURCE to files as follows:
?SOURCE aa ! Equivalent to ?SOURCE $a.b.cat
?SOURCE cc ! Equivalent to ?SOURCE $a.b.zebra
?SOURCE bb ! Equivalent to ?SOURCE $a.b.dog
You can name new source files at each compilation without changing the contents of
the source file.
Note. The EpTAL compiler ignores the SAVEGLOBALS and USEGLOBALS directives.
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.