I have 2 files that contain duplicate records.
I'd like to create a new file that contains only single records.
Is there any way to acomplish this?
Thank you!!
compare two files and output a difference report
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: compare two files and output a difference report
Hello,
Yes, but you need to post something that demonstrates your requirement. Post some sample input from both files and the output you want when that sample input is processed.Is there any way to acomplish this?
Hope this helps,
d.sch.
d.sch.
Re: compare two files and output a difference report
Hi Dick,
Thank you for your reply.
I found a tool to accomplish the above - It's called "Beyond Compare".
Basically, I uploaded the flat files to the hard drive as a text format and ran them through the "Beyond Compare". By selecting "just matching" option gave me the list of the duplicate records. From that list, I've deleted the duplicate records from one of the two original files.
Thank you anyways though!!
Thank you for your reply.
I found a tool to accomplish the above - It's called "Beyond Compare".
Basically, I uploaded the flat files to the hard drive as a text format and ran them through the "Beyond Compare". By selecting "just matching" option gave me the list of the duplicate records. From that list, I've deleted the duplicate records from one of the two original files.
Thank you anyways though!!
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: compare two files and output a difference report
You're welcome - good to hear you have a solution
As long as the data is small enough to transfer to your local drive, this may suffice.
If you work with larger volumes, you will most likely not be able to use this approach and it would be well to already know how to do the work on the platform where the data resides. . . FWIW.

As long as the data is small enough to transfer to your local drive, this may suffice.
If you work with larger volumes, you will most likely not be able to use this approach and it would be well to already know how to do the work on the platform where the data resides. . . FWIW.
Hope this helps,
d.sch.
d.sch.
-
- Posts: 62
- Joined: Wed Apr 23, 2008 1:37 pm
- Skillset: Mainframe - JCL, COBOL, VSAM, DB2, REXX, CICS
- Referer: Internet Search
- Location: Chennai, India
- Contact:
Re: compare two files and output a difference report
Hi kihaho,
suggestion: using JCL, merge the files. During merge process, eliminate duplicates (using SUM FIELDS=NONE, hope i am correct in syntax
)
suggestion: using JCL, merge the files. During merge process, eliminate duplicates (using SUM FIELDS=NONE, hope i am correct in syntax

-
- Similar Topics
- Replies
- Views
- Last post
-
-
Restart a program that has only GSAM output files
by RajaniSiddineni » Thu Jul 22, 2021 7:48 pm » in IMS DB/DC - 1
- 3984
-
by Isakshields
View the latest post
Mon Aug 09, 2021 5:57 pm
-
-
-
File Handling 3 input files and 1 output file by using EZT
by pavan426 » Thu Sep 09, 2021 12:17 am » in CA-Easytrieve - 0
- 4426
-
by pavan426
View the latest post
Thu Sep 09, 2021 12:17 am
-
-
-
Joining 2 vb files into vsam files ended error
by newbiemainframe » Thu Nov 12, 2020 7:59 am » in JCL - 1
- 1756
-
by NicC
View the latest post
Thu Nov 12, 2020 7:15 pm
-
-
- 1
- 1635
-
by willy jensen
View the latest post
Fri Aug 04, 2023 12:52 pm
-
-
Continuation of report in ICETOOL
by schintala » Sat Dec 24, 2022 10:32 pm » in DFSORT/ICETOOL/ICEGENER - 7
- 2980
-
by sergeyken
View the latest post
Fri Dec 30, 2022 12:27 am
-