Using INV and OUTV
Initiating and Communicating With Processes
107365 Tandem Computers Incorporated
5–15
Table 5-4 lists the functions and options that support communication through INV and
OUTV. You can request waited or nowaited communication.
Table 5-4. Functions and Options Used With INV and OUTV
TACL Command or Function
Description
RUN or #NEWPROCESS with INV and OUTV variables
specified
Starts a process.
#APPEND(V) to INV variable
Sends a request to the process.
#EXTRACT(V) from OUTV variable
Retrieves a result.
#WAIT
Waits until a variable is empty (read)
or full (write).
Set INV variable to #EOF or send an exit message
appropriate for the process
Closes the process.
Determining the Name of the IN File
TACL assigns a name to the IN file used by the new process. The name consists of the
name of your TACL process, followed by a period, a number sign, the letter S, and a
number in the range 0 through 32767 ($T127.#S3, for example). Use the routine in
Figure 5-6,
getname
, to start a FUP process and retrieve the name of its IN file. To use
the routine, load the associated file and enter:
getname
The following session shows sample output:
12> getname
The IN file name is: $L11.#S9.
Figure 5-6. Retrieving the TACL IN File Name
?SECTION getname ROUTINE
#FRAME
#PUSH infile_name in_var out_var prompt_var status_var
FUP /INV in_var DYNAMIC PROMPT prompt_var, &
OUTV out_var, STATUS status_var, NOWAIT/
SINK [#WAIT prompt_var]
#SET infile_name [#VARIABLEINFO /SERVER/ in_var]
#OUTPUT The IN file name is: [infile_name].
#UNFRAME