|
haven't tested it yet. I think you might be able to do this statement on interactive sql: with tempFile as (select keyField, max(rrn(ACTUALFILE)) as uniRRN from ACTUALFILE group by keyField order by KeyField) select * from ACTUALFILE exception join tempFile on rrn(ACTUALFILE)=uniRRN -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Rosh De Sent: Thursday, December 30, 2004 1:19 PM To: rpg400-l@xxxxxxxxxxxx Subject: Duplicate records I have a PF with no keys. All records in this PF are duplicate, exactly same. What is a better way to remove all such duplicates? This is one time problem. I thought of a program to read the file, read first record, keep it, read second and delete it and reset the counter. SQL of any help here? -Rosh
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.