TACL Reference Manual

UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual429513-018
8-43
COPYVAR Command
COPYVAR Command
Use the COPYVAR command to copy the contents of one variable level to another.
variable-level-in
is the name of an existing variable level.
variable-level-out
is the name of a variable level. COPYVAR performs an implicit PUSH command to
create a variable-level-out with the same data type as variable-level-in, regardless
of whether variable-level-out already exists.
Result
The COPYVAR command pushes variable-level-out and copies the contents of
variable-level-in to variable-level-out.
Example
This example copies the contents of the variable FIRSTDAY to the variable
TEMPDAY.
14> OUTVAR firstday
FRIDAY
15> COPYVAR firstday tempday
16> OUTVAR tempday
FRIDAY
COPYVAR variable-level-in variable-level-out