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


Example 19

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

 OPTION COPY
 OUTFIL FNAMES=R500,REPEAT=500
 OUTFIL FNAMES=R100,OUTREC=(SEQNUM,4,ZD,80X'FF'),REPEAT=100

This example illustrates how one record can be used to generate many records.

The first OUTFIL statement writes each output record 500 times to the data set associated with R500. Each set of 500 records will be identical.

The second OUTFIL statement writes each reformatted output record 100 times to the data set associated with R100. Each set of 100 records will be identical except for the sequence number. The 100 records written from the first output record will have sequence numbers 1-100, the 100 records written from the second output record will have sequence numbers 101-200, and so on.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014