z/OS DFSORT Application Programming Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


SORT operator

z/OS DFSORT Application Programming Guide
SC23-6878-00

Read syntax diagramSkip visual syntax diagram
>>-SORT--+-FROM(indd)-+--USING(xxxx)--+-----------------+------->
         '-JKFROM-----'               |     .-,-----.   |   
                                      |     V       |   |   
                                      '-TO(---outdd-+-)-'   

>--+-------------+--+-----------------+--+--------+------------><
   '-VSAMTYPE(x)-'  +-LOCALE(name)----+  '-SERIAL-'   
                    +-LOCALE(CURRENT)-+               
                    '-LOCALE(NONE)----'               

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.

The DYNALLOC option is passed to DFSORT to ensure that work space is available for the sort. If your installation defaults for dynamic allocation are inappropriate for a SORT operator, you can take one of the following actions:
  1. 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.

  2. 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.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014