Using the INLINE Facility
Initiating and Communicating With Processes
107365 Tandem Computers Incorporated
5–7
To retrieve the current settings of the INLINE variables, expand the variables (using
square brackets) or use the ENV command. The default value for #INLINEPREFIX is
NULL.
Generating Input
To define the inline prefix, use the #INLINEPREFIX built-in variable or the
INLPREFIX command. The following command sets the prefix to +:
#SET #INLINE
When TACL passes a prefixed line to a process, it first removes the prefix and the
space. If a prefixed line contains square brackets, TACL evaluates them before
sending the line. TACL strips comments in == (double equal sign) or { } (enclosing
braces) format from prefixed lines. If a prefixed line contains only the prefix, TACL
sends a blank line to the process.
If an unprefixed line generates a prefixed line, TACL passes the prefixed line to the
process as its input.
In addition to program-defined termination commands, you can use the #INLINEEOF
built-in function to pass an EOF to an inline process.
Lines sent as input to processes started with the INLINE option are not copied to the
TACL OUT file unless you set #INLINEECHO to a nonzero value.
Use the macro in Figure 5-1,
inline_fup
, to set the INLINE prefix, start a FUP
process, and send commands to FUP. Input comes from the TACL macro; output goes
to the home terminal. To run this macro, load the associated file and enter:
12> inline_fup
The macro displays the FUP banner, the two commands, and FUP responses:
2> LOAD /KEEP 1/ INLINEEX
Loaded from $DATA.TEST.INLINEEX:
INLINE_FUP
3> inline_fup
File Utility Program - T9074C31 - (12FEB92) System \NY
Copyright Tandem Computers Incorporated 1981,1983,1985-1992
info taclcstm
CODE EOF LAST MODIF OWNER RWEP TYPE REC BLOCK
$DATA.TEST
TACLCSTM 101 76 11JAN92 20:43 167,1 NO-O
info mykeys
CODE EOF LAST MODIF OWNER RWEP TYPE REC BLOCK
$DATA.TEST
MYKEYS 101 1306 1JUN91 15:19 167,1 NO-O
exit