TACL Reference Manual
UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual—429513-018
8-111
OUTVAR Command
string
is the data to be output. It is the name of an existing variable level, text enclosed in
quotation marks, or a concatenation of such entities. The concatenation operator is
'+' (the apostrophes are required).
Considerations
•
If options are supplied, the options are applied to each line of the variable as
though you had called the #OUTPUT built-in with the same options for each line of
the variable. In particular, the last line of a variable is the only one that the HOLD
option really applies to because each line forces output of any previous line.
•
OUTVAR with the HOLD option is useful for constructing lines to be output piece
by piece. For example, when you invoke this macro file, called BUNCHUP:
?TACL MACRO
#PUSH part
#SET part All
OUTVAR /HOLD/ part
#SET part together
OUTVAR /HOLD/ part
#SET part now
OUTVAR part
the text all comes out on one line, as follows:
13> BUNCHUP
Alltogethernow
•
No options are allowed when a structure or substructure is being displayed.
•
OUTVAR structure is not the same as #OUTPUT [ structure]. The former displays
the data of the structure in a stylized format, such as:
14> OUTVAR inventory
INVENTORY(0)
ITEM(0:0) 123
PRICE(0:0) 1004
QUANTITY(0:0) 97
while the latter merely displays the data as a space-separated list of its external
representations.
•
OUTVAR does not show redefinitions unless the argument itself is one.
•
If #OUTFORMAT is set to PRETTY, you can control output spacing by the use of
tilde-underscore (~_) metacharacters in the data to be displayed by OUTVAR.