TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-216
#INTERACTIVE Built-In Function
#INTERACTIVE Built-In Function
Use #INTERACTIVE to determine whether your TACL is interactive. TACL is
considered to be interactive if its IN and OUT files are the same.
Result
If you include the CURRENT option, #INTERACTIVE returns -1 if the current IN file is
the same as the current OUT file (the contents of #IN are the same as the contents of
#OUT); otherwise, it returns 0.
If you omit the CURRENT option, #INTERACTIVE returns -1 if the primary IN file is the
same as the primary OUT file; otherwise, it returns 0.
The primary IN and OUT files are those in effect when TACL first starts (specified by
the IN and OUT run options in the RUN command that initiates the TACL process).
The current IN and OUT files may be different from those, if #SET #IN or #SET #OUT
have been executed.
Consideration
TACL automatically determines whether it is interactive when it first starts to run.
#INTERACTIVE [ / CURRENT / ]