Dear Forum members
I have a situation in which there are 2 files(LRECL 80), e.g.
File 1
There are the below records in this file
ABDULLA
MOHAMMED
RESET
MOVE
7
9
4
2
FIle 2
There are the below records in this file
NEXT
INSERT
RESET
55
0
9
8
2
When i sort both these files into one file to remove the duplicates (considering 1:80 as the key), the order of the record changes, the output becomes
ABDULLAH
INSERT
MOHAMED
MOVE
NEXT
RESET
0
2
4
55
7
8
9
I do want the duplicates to be removed, but the order of the records should not change. Basically if duplicates exist in file 1 they should be removed. The other requirement is that if any record in file 2 matches with any record in file 1, then the file 2 record should be removed. So basically the result should be like this
ABDULLAH
MOHAMED
RESET
MOVE
7
9
4
2
NEXT
INSERT
55
0
8
THis has to done using SYNCSORT.
Kindly help
Thanks
Sujith