Figure 5-4 Omitting Terminal Output - HP TACL Programming Manual

Tandem advanced command language
Table of Contents

Advertisement

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
#PUSH #INLINETO
#PUSH log
#SET #INLINEPREFIX +
#SET #INLINETO log
SINK [#ARGUMENT /VALUE file1/ FILENAME]
SINK [#ARGUMENT /VALUE file2/ FILENAME]
#SET #INLINEOUT 0
FUP /INLINE/
+ info [file1]
+ info [file2]
#INLINEEOF
INLTO
#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
107365 Tandem Computers Incorporated
Initiating and Communicating With Processes
== Create a new level of #INLINEPREFIX
== Create a new level of #INLINETO
== Create a variable to contain output
== Set the new prefix to "+"
== Associate log with process output
== Disable output to the terminal
== Send a command to FUP
== Send a second command to FUP
== Stop FUP
== Stop logging FUP output
Using the INLINE Facility
5–11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents