DFSORT OUTFIL Selecting and sampling by RRNDFSORT OUTFIL: Creating multiple identical copies DFSORT OUTFIL: Including, omitting Records
OUTFIL statement is used to copy, sort or merge input records by using RRN.
RRN stands for relative record number.
When performing copy, sort or merge operations, the resulting records have implicit relative record.
The implicit relative record numbers are starting from 1 for the first record and n for the last record (n is the total number of records).
SORT FILEDS=(Starting position, length, data-format, A/D) OUTFIL FNAMES=DDNAMEn, STARTREC=starting RRN, ENDREC= Ending RRN
|DDNAMEn||DDNAME is eight character’s name that representing the actual dataset in JCL.|
|STARTREC=starting RRN||Specifies the starting record RRN from where the copy starts|
|ENDREC=Ending RRN||Specifies the ending record RRN where the copy ends|
Example: - Will update soon
DFSORT OUTFIL: Creating multiple identical copies DFSORT OUTFIL: Including, omitting Records