I have a large file I'm trying to eliminate dupes in and I'm not having much luck. Obviously, I'd like to get this done via JCL instead of a program.
My file can have multiple records per SSN. Because there are actually people with the same SSN, we use unique internal IDs to separate customers. I need to make sure there are no SSNs that have more than one INT-SSN, just in case.
Record layout:
SSN.......... 1-9
filler......... 10
INT-SSN.... 11-19
filler........ 20-80
Sample records. File is sorted on SSN, INT-SSN
These 2 records should remain.
111111111 234567890
111111111 234567890
These 3 records should be deleted. There are > 1 INT-SSN per SSN.
222222222 987654321
222222222 987654321
222222222 999999999
Anyone think this can be done? I was thinking if it could be done, SYNCSORT could do it.
Thank you for your time,
Bob