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


Example 7

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

 OPTION COPY
 OUTFIL FNAMES=RANGE1,ENDREC=1000000
 OUTFIL FNAMES=RANGE2,STARTREC=1000001,ENDREC=2000000
 OUTFIL FNAMES=RANGE3,STARTREC=2000001,ENDREC=3000000
 OUTFIL FNAMES=RANGE4,STARTREC=3000001,ENDREC=4000000
 OUTFIL FNAMES=(RANGE5,EXTRA),STARTREC=4000001

This example illustrates how specific ranges of output records can be written to different output data sets. A typical application might be database partitioning.

The first 1 million records will be written to the data set associated with RANGE1, the second million to RANGE2, the third million to RANGE3, and the fourth million to RANGE4. The remaining records will be written to both the data set associated with RANGE5 and the data set associated with EXTRA (SAVE or STARTREC=4000001 will accomplish the same purpose in this case).

Note that the INCLUDE, OMIT, and SAVE parameters of OUTFIL can also be used to select records to be written to different output data sets, based on criteria you specify.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014