TACL Reference Manual

UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual429513-018
8-131
PUSH Command
PUSH Command
Use the PUSH command to create a new top level for one or more variables or built-in
variables. The PUSH command is an alias for the #PUSH built-in function.
variable
is a valid variable or a built-in variable name.
Considerations
For existing variables that are not built-in variables, PUSH creates an empty top
level of type TEXT.
For built-in variables, PUSH creates a new top-level definition, copying the old top
level to the new one (top-level and second-level definitions are now the same).
If the variable does not exist, PUSH registers the name of the variable, but does
not allocate space until you use SET VARIABLE or a similar command or built-in
function to actually place data into the variable. As a result, you must perform a
SET VARIABLE or related operation prior to using the variable in an #IF call or
other command or function that tests the value of the variable.
The default type for variables is TEXT. To change this type, use the SET
VARIABLE command.
Do not try to PUSH the root directory (:). If you try this, TACL returns “*ERROR*
Cannot push or pop the root segment's root.” In addition, to avoid
losing standard functionality from your TACL environment, do not PUSH the
directories supplied as part of a software RVU (such as UTILS).
PUSH variable [ [,] variable ] ...