The SORT Statement (for SORT TABLE) The SORT statement creates a sort file by executing input procedures or by transferring records from another file, sorts the
records in the sort file on a set of specified keys, and in the final phase of the sort operation, makes available each record
from the sort file, in sorted order to some output procedures or to an output file.