TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-129
#DELTA Built-In Function
If the search string is not found, #DELTA issues an error message and, if the #DELTA
session is not interactive, #DELTA exits. The pointer does not move. You can use the :
flag to enable your #DELTA code to handle search errors-if the string is found, the X
register is set to -1; if not, it is set to 0.
You can also use S with FL to do text replacement.
The T Command
The T command displays a range of text, the contents of a variable level, or a user-
specified string.
The range of text can be specified either with an X register value or with X and Y
register values.
To display the contents of a variable level, use the @ flag with the T command. The T
command must be immediately followed by the variable level name; the variable level
name must be terminated by a dollar sign.
For example:
60> #PUSH TEST
61> #SET TEST Test string in a variable
62> #DELTA
#DELTA 63> @Ttest$
#DELTA 63> EOF!
Test string in a variable
#DELTA 64>
You can use the : flag to direct the T command to display a text string. The text follows
the T command and must be terminated with a dollar sign. If the text contains a dollar
sign, you can use the @ flag to specify the string delimiter. The delimiter is the first
character after the T command. In this example, the first :T command uses the dollar
sign terminator; the second :T command types out a string that contains a dollar sign,
so it uses the @ flag to specify a different terminator:
#DELTA 64> :TParsing string...$
#DELTA 64> EOF!
Parsing string...
#DELTA 65> @:T/Couldn't open $GERT.STEIN.NEWMACS/
#DELTA 65> EOF!
Couldn't open $GERT.STEIN.NEWMACS
#DELTA 66>
The U Command
The U command moves the value in the X register into a numeric variable level,
consisting of one line, the text of which is the ASCII representation of a number. The
variable level name must be terminated by a dollar sign.
The U command stores the value of the X register in the variable level, stores the Y
register value in the X register, and sets the Y register to a null value. A second U