SAME SORT AREA Clause

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

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

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

                                                   .-------------.   
              (1)                                  V             |   
>>-SAME--SORT------+------+--+-----+--file-name-3----file-name-4-+-><
                   '-AREA-'  '-FOR-'                                 

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