Using the INLINE Facility
Initiating and Communicating With Processes
107365 Tandem Computers Incorporated
5–11
To control the output displayed by TACL, use the INLOUT command. To inhibit
terminal output from the INLINE_FUP_LOG routine in Figure 5-3, add an
#INLINEOUT call as shown in Figure 5-4. The syntax is:
inline_fup_log2
file1 file2
Figure 5-4. Omitting Terminal Output
?SECTION inline_fup_log2 ROUTINE
#FRAME
#PUSH file1 file2
#PUSH #INLINEPREFIX == Create a new level of #INLINEPREFIX
#PUSH #INLINETO == Create a new level of #INLINETO
#PUSH log == Create a variable to contain output
#SET #INLINE == Set the new prefix to "+"
#SET #INLINETO log == Associate log with process output
SINK [#ARGUMENT /VALUE file1/ FILENAME]
SINK [#ARGUMENT /VALUE file2/ FILENAME]
#SET #INLINEOUT 0 == Disable output to the terminal
FUP /INLINE/
+ info [file1] == Send a command to FUP
+ info [file2] == Send a second command to FUP
#INLINEEOF == Stop FUP
INLTO == Stop logging FUP output
#SET #INLINEOUT 1
== Display the results
#OUTPUT Here are the contents of the output log:
#OUTPUTV log
#OUTPUT End of the log.
#UNFRAME
Use the macro in Figure 5-5,
emptyspool
, to interact with PERUSE and send output
to a variable.
Caution
This macro deletes jobs in the spooler. Before running it, make sure you want to delete all jobs
associated with your user ID.
The macro examines each line of output and, for JOB lines, deletes the associated job.
TACL returns the entire result string; you can use string-handling and character-
handling functions as needed to evaluate the output and determine the next step. The
syntax is:
emptyspool