DFSORT OUTFIL Selecting and sampling by RRN

DFSORT OUTFIL: Creating multiple identical copies DFSORT OUTFIL: Including, omitting Records

Advertisements


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


Syntax:
SORT FILEDS=(Starting position, length, data-format, A/D)
	OUTFIL FNAMES=DDNAMEn, STARTREC=starting RRN, ENDREC= Ending RRN

Name Description
DDNAMEnDDNAME is eight character’s name that representing the actual dataset in JCL.
STARTREC=starting RRNSpecifies the starting record RRN from where the copy starts
ENDREC=Ending RRNSpecifies the ending record RRN where the copy ends

Example: - Will update soon


DFSORT OUTFIL: Creating multiple identical copies DFSORT OUTFIL: Including, omitting Records

Advertisements