Merge

Examples of Merge

The MERGE command copies a variable and all its descendants into another variable. MERGE does not delete the destination variable, nor any of its descendants.

The format of MERGE command is:

        M[ERGE][:tvexpr] glvn1=glvn2[,...]
      

MERGE simplifies the copying of a sub-tree of a local or global variable to another local or global variable. A sub-tree is all global or local variables that are descendants of an specified variable. MERGE offers a one-command alternative to the current technique for doing sub-tree copy (that is, a series of SET commands with $ORDER references).

[Note]

GT.M may permit certain syntax or actions that are described by the standard as in error. For example, a MERGE command that specifies an operation where the source and destination overlap but $DATA(source)=0 does not produce an error (which is equivalent to a no-operation).