pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
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.
NOTE: The EpTAL compiler ignores the SAVEGLOBALS and USEGLOBALS directives.
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:
Complete File NamesIncomplete File Names
ASSIGN qq, \x.$y.z.catASSIGN qq, cat
ASSIGN ss, \x.$y.b.dogASSIGN ss, b.dog
ASSIGN tt, \x.$a.b.rat.ASSIGN tt, $a.b.rat
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.
ASSIGN SSV
The ASSIGN SSV (search subvolume) command lets you specify which node, volume, and subvolume
to take files from. The compiler uses ASSIGN SSV information to resolve partial file names in the
SEARCH, SOURCE, and USEGLOBALS directives.
NOTE: The EpTAL compiler ignores the USEGLOBALS directive.
For each ASSIGN SSV command, append to the SSV keyword a value in the range 0 through 49.
Values in the range 0 through 9 can appear with or without a leading 0.
For example, if you specify:
ASSIGN SSV1, oldfiles
and the compiler encounters the directive:
?SOURCE myutil
the compiler looks for oldfiles.myutil.
If you then specify:
ASSIGN SSV1, newfiles
HP TACL Commands 523