SORT operator
Sorts a data set to one or more output data sets.
DFSORT is called to sort the indd data set to the outdd data sets using the DFSORT control statements in xxxxCNTL. You must supply a DFSORT SORT statement in the xxxxCNTL data set to indicate the control fields for the sort. You can use additional DFSORT statements in the xxxxCNTL data set to sort a subset of the input records (INCLUDE or OMIT statement; SKIPREC and STOPAFT options; OUTFIL INCLUDE, OMIT, SAVE, STARTREC, ENDREC, SAMPLE, SPLIT, SPLITBY, and SPLIT1R operands; user exit routines), reformat records for output (INREC, OUTREC, and OUTFIL statements, user exit routines), and so on.
The active locale's collating rules affect SORT processing as explained
in SORT control statement. If an INCLUDE or OMIT statement or an OUTFIL
INCLUDE or OMIT operand is specified in the xxxxCNTL data set, the
active locale's collating rules affect INCLUDE and OMIT processing
as explained in the Cultural Environment Considerations
discussion
in INCLUDE control statement.
- Override the DYNALLOC option using an OPTION control statement
such as:
OPTION DYNALLOC=(,8)in the xxxxCNTL data set in conjunction with the USING(xxxx) operand.
- Use xxxxWKdd DD statements to override the use of dynamic allocation in conjunction with the USING(xxxx) operand. Refer to SORTWKdd DD statement for details.
Tape work data sets cannot be used with ICETOOL.
