Preserving the original sequence of records with equal keys
You can preserve the order of identical collating records from input to output.
Use one of these techniques:
- Install DFSORT with the
EQUALS
option as the default. - Provide, at run time, an
OPTION
card that has theEQUALS
keyword in the IGZSRTCD data set. - Use the
WITH DUPLICATES IN ORDER
phrase in theSORT
statement. Doing so adds theEQUALS
keyword to theOPTION
card in the IGZSRTCD data set.Do not use both the
NOEQUALS
keyword on theOPTION
card and theDUPLICATES
phrase, or the run unit will end.
related references
DFSORT Application Programming Guide (OPTION control statement)
DFSORT Application Programming Guide (OPTION control statement)