TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-211
#INPUTEOF Built-In Variable
#INPUTEOF Built-In Variable
Use #INPUTEOF to obtain the current state of the end-of-file flag.
Result
#INPUTEOF returns -1 if TACL reads an end-of-file; otherwise, it returns 0.
Considerations
•
When you first log on, #INPUTEOF is initialized to zero.
•
Every #INPUT or #INPUTV sets #INPUTEOF to 0. If TACL receives an end-of-file
in response, it then sets #INPUTEOF to -1.
•
Use #PUSH #INPUTEOF (or PUSH #INPUTEOF) to save a copy of the current
setting of the INPUTEOF flag.
•
Use #POP #INPUTEOF (or POP #INPUTEOF) to restore the INPUTEOF flag from
the copy last pushed.
•
Use #SET #INPUTEOF (or SET VARIABLE #INPUTEOF) to set the INPUTEOF
flag to on or off.
The syntax of #SET #INPUTEOF is:
num
is zero to set the flag off or a nonzero value to set the flag on.
#INPUTEOF
#SET #INPUTEOF num