MERGE

Folgende Syntax wird für das MERGE Statement erkannt:

>>-MERGE--file-name-1------------------------------------------->

   .--------------------------------------------------.   
   |                                  .-------------. |   
   V                                  V             | |   
>----+----+--+-ASCENDING--+--+-----+----data-name-1-+-+--------->
     '-ON-'  '-DESCENDING-'  '-KEY-'                      

>--+---------------------------------------------------+-------->
   '-+-----------+--SEQUENCE--+----+-- alphabet-name-1-'   
     '-COLLATING-'            '-IS-'                       

                       .-------------.   
                       V             |   
>--USING--file-name-2----file-name-3-+-------------------------->

>--+-OUTPUT PROCEDURE--+----+-- procedure-name-1--+-------------------------------+-+-><
   |                   '-IS-'                     '-+-THROUGH-+--procedure-name-2-' |   
   |                                                '-THRU----'                     |   
   |         .-------------.                                                        |   
   |         V             |                                                        |   
   '-GIVING----file-name-4-+--------------------------------------------------------'