TACL Reference Manual

UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual429513-018
8-122
POP Command
POP Command
Use the POP command to delete the top-level definition of a variable. The POP
command is an alias for the #POP built-in function.
variable
is the name of an existing variable or the name of a built-in variable.
Considerations
If the top level is the only level, the POP command deletes the variable, except for
built-in variables. Trying to pop a variable that has not been pushed produces an
“Expecting an existing variable” message. Trying to pop the last level of a built-in
variable produces a “wasn’t pushed” message.
When TACL encounters an #UNFRAME, it performs an implicit POP for every
PUSH (or #PUSH) that was done since the most recent #FRAME was issued.
TACL performs an implicit #POP #IN when #INPUT /UNTIL EOF/ or #INPUTV
/UNTIL EOF/ is used.
If TACL encounters an error, it performs an implicit #POP #OUT.
Do not try to pop 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 pop the directories supplied as part of a software RVU (such as UTILS).
POP variable [ [,] variable ] ...