DFSORT OUTFIL Saving discards

DFSORT OUTFIL: Including, omitting Records DFSORT OUTFIL: Reformatting

Advertisements


OUTFIL used to save the discards by using SAVE parameter.

The discards are the records which are discarded by the group of OUTFIL statements.

The SAVE parameter selects the records for its OUTFIL dataset that not selected for any OUTFIL.


Syntax:
	SORT FILEDS=(Starting position, length, data-format, A/D)
	OUTFIL FNAMES=DDNAME1, INCLUDE/OMIT COND=(….)
	OUTFIL FNAMES=DDNAME2, INCLUDE/OMIT COND=(….)
	…..
	OUTFIL FNAMES=DDNAMEn, SAVE

Name Description
DDNAMEnDDNAME is eight character’s name that representing the actual dataset in JCL.
INCLUDE/OMITSpecifies the INCLUDE/OMIT condition for specific OUTFIL
SAVESpecifies the records not selected for any OUTFIL will be saved to DDNAMEn

Example: - Will update soon


DFSORT OUTFIL: Including, omitting Records DFSORT OUTFIL: Reformatting

Advertisements