Hello
We want to be able to keep duplicates within each file and splice out the records that match from another file.
We have a job that runs twice a month (15th and 30th).
The file created on the 15th consists of records with length of 159 and can have duplicates.
The file created on the 30th consists of records with length of 159, can have duplicates and it also contains the records from the file created on the 15th.
We want to run a sort/splice job to compare both files, remove the records that match (including the matching duplicates) and result in a new file which consists of the remaining records (with duplicates).
The whole record (159 bytes) will be compared. Also keeping them in the same order would be nice too.
Sample data:
File 1 (15th)
AAAA…
BBBB…
CCCC…
CCCC…
File 2 (30th)
AAAA…
BBBB…
CCCC…
CCCC…
DDDD…
EEEE…
FFFF…
FFFF…
GGGG…
New File
DDDD…
EEEE…
FFFF…
FFFF…
GGGG…
We’ve tried all sorts of combinations, but haven’t gotten the correct results yet.
Any help would be appreciated. Thanks...