TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-164
#EXIT Built-In Variable
#EXIT Built-In Variable
Use #EXIT to determine the current state of the exit flag.
Result
#EXIT returns 0 if the EXIT flag is off and -1 if it is on. If the EXIT flag is on, it causes
TACL to exit as soon as its buffer becomes empty.
Considerations
•
When you first log on, #EXIT is initialized to zero.
•
Use #PUSH #EXIT (or PUSH #EXIT) to save a copy of your current setting of the
exit flag.
•
Use #POP #EXIT (or POP #EXIT) to restore the exit flag from the last copy
pushed.
•
Use #SET #EXIT (or SET VARIABLE #EXIT) to turn the exit flag on or off.
The syntax of #SET #EXIT is:
num
is zero to set the flag off, nonzero to set it on.
#EXIT
#SET #EXIT num