Vineet wrote:Hi KOLUSU,
I am sorry for the Incorrect Information. below is the Correct One.
If U need Further Clarification Please do let eme know. In Nut Shell I can say, There should be One Instance of Common Records i.e. First 16 Bytes + Remaning Fields. If any Other Field Differs apart From the 16 Bytes that Should be Written to O/P File.
It is still confusing. If you need 1 instance of common records why aren't you writing this record?
On the other hand you write the first record from this group when both of them are exactly the same.
7899|ABCDE|88888|WORLD|MAINFRAME|XYZ12345|.... To be written to O/P File. First 16 Bytes = 7899|ABCDE|88888
7899|ABCDE|88888|WORLD|MAINFRAME|XYZ12345|.... Not to be written to O/P file. First 16 Bytes = 7899|ABCDE|88888
So be clear on what you are trying to do and show us better examples.