The below sort card helps to get duplicates to an out file,also,we get without duplicate records.
Best Sort card
//MATCH EXEC PGM=SORT
//IN1 DD DSN=... input File1 (FB/10)
//IN2 DD DSN=... input File2 (FB/10)
//SORTOUT DD SYSOUT=* ...without duplicate records
//SORTXSUM DD DSN=...out file with duplicate records
//SYSIN DD *
SUM FIELDS=NONE,XSUM
/*
We can get duplicates into SORTXSUM file.
Best Sort card
//MATCH EXEC PGM=SORT
//IN1 DD DSN=... input File1 (FB/10)
//IN2 DD DSN=... input File2 (FB/10)
//SORTOUT DD SYSOUT=* ...without duplicate records
//SORTXSUM DD DSN=...out file with duplicate records
//SYSIN DD *
SUM FIELDS=NONE,XSUM
/*
We can get duplicates into SORTXSUM file.
No comments:
Post a Comment
Thank for comment.