Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Apr 30, 2003 10:31 am Post subject:
You can use this DFSORT/ICETOOL job to eliminate duplicates - for each ON field (key), you'll get all non-duplicates and the first record of each set of duplicates:
p,m,f is the starting position, length and format of the key field.
SELECT also allows you to handle duplicates in other ways using the operands LAST, FIRSTDUP, LASTDUP, ALLDUPS, NODUPS, HIGHER(n), LOWER(n), EQUAL(n) and DISCARD(savedd).
For complete information on DFSORT's ICETOOL, see:
But note that SUM FIELDS=NONE only does the equivalent of SELECT with FIRST - it cannot do the equivalent of the other SELECT parameters listed above (LAST, FIRSTDUP, etc). _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum