MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » September 2009

RE: Remove duplicate records



fixed

Can you be sure that all of the duplicates that exist on the file have been
caused by you re-running the program. Does the file have audit date stamps
on it? That way you could use some of the approaches already mentioned but
all check that the duplicate was created after the second time you re-ran
it. This way you might hang on to some genuine duplicates. Apologies if the
nature of the data means that duplicates are always wrong whether created
manually or automatically.

My one piece of advice would be to either save the file off before you fix
it, or if you are using sql turn on journaling.

Regards

Neill

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Pat Barber
Sent: 24 September 2009 21:53
To: Midrange Systems Technical Discussion
Subject: Re: Remove duplicate records

Not to make too simple but a very basic RPG program with a L1
on the fields that make it a duplicate would solve the duplicates in
a hurry.

Maybe 5 lines of code ?

Low risk ...high speed



jmmckee wrote:
The log number makes the rows unique. Other than that, the rows are
repeated three times.







Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact