TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-281
#OUTPUTV Built-In Function
WORDS
specifies that each line of string is to be treated as a space-separated list and
that the FILL, JUSTIFY, and WIDTH options are to be applied to the individual
members of the list. Without WORDS, string is treated as a single output item.
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).
Result
#OUTPUTV returns nothing.
Considerations
If you supply options, they are applied to each line of string as though you had
called #OUTPUT with the same options once for each line. In particular, the last
line is the only one that can be held, as each line forces output of any previous
line.
#OUTPUTV with the /HOLD/ option is useful for constructing lines to be output
piece by piece. For example, this example illustrates how you can do this by
putting the commands into an edit-format file and then invoking the file.
?TACL MACRO
#PUSH vara
#SET vara What a
#OUTPUTV /HOLD/ vara
#SET vara fine
#OUTPUTV /HOLD/ vara
#SET vara day
#OUTPUTV vara
When you invoke the macro, the text all comes out on one line.
No options are allowed when a STRUCT is being output.
Redefinitions are not shown unless string is itself a redefinition.
You can use #OUTPUTV to display the current values of a structure, substructure,
or structure item in a stylized format defined by TACL. For example:
23> #OUTPUTV inventory
item(0:0) 123
price(0:0) 1004
quantity(0:0) 97
Conversely, #OUTPUT [inventory], displays only a space-separated list of the structure
values.