Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide
_MOVE^LIST
A-74
109759—Distributed Systems Network Management (DSNM) Subsystem Interface
Development Guide
DSNM Library Services
_MOVE^LIST
_MOVE^LIST moves all members of a source list to the destination list. After the
operation, the source list is empty.
dest-list input/output
is the name of the destination _LIST to which the members of source-list are
moved.
list input/output
is the name of the source _LIST whose members are moved to the dest-list.
Considerations
dest-list should not have any members prior to the operation. If it does, these
members will not be accessible later on, as the pointer to them will be pointing to the
source members after the operation.
If source-list is initially empty, then, prior to the operation, it should be properly
initialized: for example, with _NULL^LIST.
Example
The following example moves all members of worklist to outlist:
_LIST (outlist);
_LIST (worklist);
_MOVE^LIST(outlist, worklist);
CALL _MOVE^LIST ( dest-list, source-list )