remove duplicates in two files and write unique to output file

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Raja Babu
Registered Member
Posts: 23
Joined: Mon Nov 17, 2014 3:48 pm
India

remove duplicates in two files and write unique to output file

Post by Raja Babu »

How to remove duplicates in two files and write unique to op file without Sort?

Is there any way in cobol other than loading data and search in array?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: remove duplicates in two files and write unique to output file

Post by Robert Sample »

SORT is, by far, the easiest way to do this.  Other than using an array, you could use a matched merge program in COBOL or other language of your choice.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”