TACL Reference Manual

UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual429513-018
8-200
SET VARIABLE Command
MACRO
specifies that text is a TACL macro.
ROUTINE
specifies that text is a TACL routine.
TEXT
specifies that text is simply text (it has no special meaning to TACL).
variable-level
is the name of an existing variable level, of the form:
variable-name[. level-num]
If you omit . level-num, the top level of the variable is assumed.
text
is the new contents of the variable level. If the IN option is supplied, you cannot
specify text.
built-in-variable
is the name of a built-in variable.
built-in-text
is the new value for the built-in variable.
Considerations
The syntax and operation of the SET VARIABLE command is the same as that of
the #SET built-in function.
The SET VARIABLE command replaces the current contents of variable-level with
the specified text or, if you use the IN option, the contents of the specified file.
Unless you specify a TYPE option, the variable type remains the same.
You cannot use a text string with the IN option, nor can you use the IN option with
a built-in variable.
The SET VARIABLE command cannot put leading or trailing spaces into a variable
level.
Example
This example illustrates the use of the SET VARIABLE command. This command sets
a variable level named VARA, of type MACRO, to the text *,USER SUPPORT.ALICE:
25> SET VARIABLE / TYPE MACRO / vara *,USER SUPPORT.ALICE