TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-32
#ASSIGN Built-In Variable
specifies the logical-unit name about which you want information. For more
information about logical units, see the ASSIGN Command on page 8-21.
Result
#ASSIGN returns as its result a space-separated list of the requested information
about the specified logical unit. If you do not specify any options, #ASSIGN returns a
space-separated list of all currently defined logical units.
Considerations
•
When you first log on, #ASSIGN is initialized to a null value.
•
When a backup TACL process takes over, TACL deletes existing assignments.
•
All options but EXISTENCE are likely to return nothing if the logical unit is currently
undefined, or if it is defined but the particular information was omitted when it was
defined.
•
It is best not to include multiple options as it is difficult to match results with options
when some results are null.
•
Use #PUSH #ASSIGN (or PUSH #ASSIGN) to save a copy of all your assigns.
•
Use #POP #ASSIGN (or POP #ASSIGN) to replace all your current assigns with
those last pushed.
•
Use #SET #ASSIGN (or SET VARIABLE #ASSIGN) to set a logical unit either with
or without definitions:
°
If you use #SET #ASSIGN without any arguments, all logical units become
undefined.
°
If you supply only a logical-unit name, that logical unit becomes undefined.
°
When you supply both a logical-unit name and options, the logical unit
definition is set according to the options; any previous definition of the logical
unit is lost.
°
Options are processed in the order supplied.
°
If options conflict, the last one to appear is used.
The syntax for #SET #ASSIGN is:
option
specifies the information that is to be defined for the logical unit; it can be any
of these:
#SET #ASSIGN [ [ / option [ , option ] ... / ] logical-unit ]