I have to remove duplicates from a flat file. I tried using SELECT (DFSORT) along with LASTDUP it removed the duplicates as expected. The sort card was like this.
SELECT FROM(IN) TO(OUT) ON(32,8,CH) LASTDUP
But, the problem is, there were few records like this which had duplicates.
MAILABQ
MAILTRN
MAILLOM
MAIEDD
MAILWER
For the above record, it has removed all the data and it has given only MAILWER. Is there a way I can get the proper record.
My record length is 800.
Thanks,
Viswa..