TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-196
#IN Built-In Variable
•
Be careful to coordinate functions that enable the communication (such as #IN or
#OUT) with the counterpart mechanisms in that process (such as IN or OUT
•
referring to the TACL process name). Combining different mechanisms can lead to
conflicts in interprocess message handling. For more information, see the TACL
Programming Guide.
•
When TACL is started with the IN file set to $RECEIVE, these guidelines apply:
•
You can set #IN without first pushing it. This feature, in conjunction with an
equivalent one in #OUT, allows you to run TACL as a server, yet be able to
take over a terminal as though TACL had been run on the terminal in the usual
way.
•
When you #SET #IN without pushing it, TACL responds to the BREAK key if
the device to which you set #IN supports BREAK.
•
The value of #IN is the default IN file for all processes started while #IN is set
in this way.
•
You can revert to reading commands from $RECEIVE by setting #IN to
nothing.
•
Use #PUSH #IN (or PUSH #IN) to save the name of the currently open TACL IN
file.
•
Use #POP #IN (or POP #IN) to restore the last IN file name pushed.
•
Use #SET #IN (or SET VARIABLE #IN) to name the file to be used by TACL as its
IN file.
The syntax of #SET #IN is:
file-name
is the name of the IN file to be set. You can use the name of a process in place
of a disk file name; TACL reads input from the process as if it were a file.
Example
Assuming #INFORMAT is set to TACL and your current IN file is your terminal, the
following displays your terminal name:
67> #OUTPUT [#IN]
$DECAY
#SET #IN file-name