This Cobol question really piqued my interest because of how much effort seemed to be involved in what seems like it would be a simple task.
Some sloppy Python to remove file duplicates could be simply:
print set(open('testfile.txt').read().split('\n'))
How does removing duplicates in the same file structure as above in your language of choice compare to COBOL?