TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-346
#SET Built-In Function
MACRO
specifies that text is a TACL macro.
ROUTINE
specifies that text is a TACL routine.
TEXT
specifies that text is simply text; that is, it has no special meaning to
TACL.
variable-level
is the name of the existing variable level to be set.
text
is the text to be put into the specified variable level.
built-in-variable
is the name of a built-in variable.
built-in-text
is the new value for the built-in variable.
Result
#SET returns nothing.
Considerations
•
#SET replaces the current contents of variable-level with the specified text or,
if you indicate a file with the IN option, with the contents of the specified file.
•
You cannot use a text entry with the IN option, nor can you use the IN option with a
built-in variable.
•
The IN option reads data in the PLAIN mode. The TACL process does not interpret
metacharacters as metacharacters; nor does it expand variables.
•
Unless you specify a TYPE option, the type of the variable level remains
unchanged. You cannot use the TYPE option with a built-in variable.
•
When setting a built-in variable, the format of text must be appropriate for that
particular variable. See the description of the built-in variable in question.
•
You cannot insert leading or trailing spaces into a variable level with #SET.
•
To copy a string to an existing variable level, use the #SETV built-in function.