ASPL Guide to Operations v 1.00
© 2024 by SetSphere.COM
3. 28ucopy copies a partitioned uset variable into another uset variable
ucopy uvar1 uvar2 where uvar1 uvar2 are partitioned set variables
ucopy usetoid 2 ins:H_H_H_*H ous:H_H_H_*H
Use the operator ucopy to copy a partitonned set variable into another.
acopy EXAMPLEThe partitonned set variables are saved in the partitonned symbol table. To display the variable in the partitonned symbol table we will use the command uv and to show the internals of a augmented set variable we will use the command uv d as shown in the following example. We copy the partitonned set variable p123 into PA123.
ucopy OPERATION# aspl WS1
(start ASPL loading the sample workspace WS1 )
① aspl>
tattler 1
(enable the tattler to see the activity done on ASPL symbol tables)
② aspl>
uv
(print the paritioned symbol table)
③ aspl>
p123 = fP a1 a2 a3
(get the partition of a1 a2 a3 into p123)
④ aspl>
uv
(print the paritioned symbol table)
⑤ aspl>
ucopy p123 PA123
(ucopy p123 into PA123)
⑥ aspl>
uv
(print the paritioned symbol table)
⑦ aspl>
uv d PA123
(display the descriptor of copied variable PA123)
⑧ aspl>
uv d p123
(display the descriptor of p123)