TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-19
#APPEND Built-In Function
#APPEND Built-In Function
Use #APPEND to add a line of text to the end of a variable level.
to-variable-level
is the name of an existing variable level to which text is to be appended.
text
is the text to be added. If you omit text, a blank line is added to the end of the
variable level.
Result
#APPEND returns nothing.
Considerations
•
The appended text always starts a new line; #APPEND cannot append text to an
existing line.
•
If text is a variable name in brackets, and that variable contains multiple lines,
enclose the entire function call in square brackets. Otherwise, TACL tries to
execute the second line.
Example
This text defines a variable called kingandi, and then appends “Please read the
attached message” to the initial text:
11> [#DEF kingandi TEXT |BODY|Attention managers]
12> #APPEND kingandi Please read the attached message
13> #OUTPUTV kingandi
Attention managers
Please read the attached message
14>
#APPEND to-variable-level [ text ]