TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-212
#INPUTV Built-In Function
#INPUTV Built-In Function
Use #INPUTV to read information from the TACL primary or current IN file (typically,
the home terminal) into a variable level.
You can also use #INPUTV to prompt directly with the binary data of a STRUCT or to
set the binary data of a STRUCT directly from the IN file. No type-checking is done on
the input data.
option
is an option that qualifies the read operation. The options available are the same
as described for #INPUT with one addition: the operand of the HISTORYV option
can be a string instead of merely a variable level.
variable-level
is the name of the variable level (which can be of type STRUCT) that is to hold the
input data. If no data is read, variable-level is set to a blank line. The previous
contents of the variable level are lost.
prompt-string
is the name of an existing variable level (not enclosed in square brackets), the first
line of which is to be written to the IN file as a prompt, or text enclosed in quotation
marks to be used for that purpose, or a concatenation of such entities.
The concatenation operator is '+' (the apostrophes must surround the plus
character).
Result
#INPUTV returns nothing.
Considerations
TACL sets #INPUTEOF to -1 if you type an end-of-file (CTRL-Y); otherwise, it is
set to 0.
If TACL receives an end-of-file, it clears variable-level.
The form
#INPUTV struct prompt
is not equivalent to
#SET struct [#INPUT [ prompt]]
#INPUTV [ / option [ , option ] ... / ] variable-level
prompt-string