SAME SORT-MERGE AREA Clause

The SAME SORT-MERGE AREA clause optimizes the storage area assignment to a given SORT or MERGE statement.

The SAME SORT-MERGE AREA clause is syntax checked, but is treated as documentation.

Read syntax diagramSkip visual syntax diagram
SAME SORT-MERGE AREA Clause - Format

                    (1)                                   
>>-SAME--SORT-MERGE------+------+--+-----+--file-name-3--------->
                         '-AREA-'  '-FOR-'                

   .-------------.   
   V             |   
>----file-name-4-+---------------------------------------------><

Notes:
  1. Syntax-checked only.
When the SAME SORT-MERGE AREA clause is specified, at least one file-name specified must be a sort or merge file. Files that are not sort or merge files may also be specified. The following rules apply: