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.
[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
Maybe 5 lines of code ?
Low risk ...high speed
The log number makes the rows unique. Other than that, the rows are
repeated three times.