please tell me how to remove the duplicate records from the input file and write it into another dataset.I need to write the duplicate records seperately how to achieve this please tell me.
my input data
0007900
0005412
0007900
0001111
0001111
0003333
0004444
and the expected output
0007900
0001111
0003333
0007900
0005412
0007900
0001111
0001111
0003333
0004444
and the expected output
0007900
0001111
0003333
thanks