Determine duplicate record for duplicate and non-duplicate records

Posted by gibboo on Stack Overflow See other posts from Stack Overflow or by gibboo
Published on 2009-08-04T08:31:26Z Indexed on 2010/04/06 19:43 UTC
Read the original article Hit count: 493

Filed under:
|
|

I have a files containing both duplicate and non-duplicate records. The file is already sorted by a key. I want to determine those records that are duplicate and records that are non-duplicate. If duplicate the record is moved to a duplicate file and if non-duplicate that will be moved to valid file.

I am using COBOL, and occurence of records for duplicate and non-duplicate is more than twice.

© Stack Overflow or respective owner

Related posts about cobol

Related posts about mainframe