Posted: Wed Jun 15, 2005 6:22 am Post subject: copying duplicates into another file
Hi, my requirement is to strip first 8 characters from flat file and eliminate duplicates and write the eliminated duplicates to another file.
I have written the following jcl by searching in the site.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Jun 15, 2005 9:58 am Post subject:
Quote:
suggest me whether it is correct.
No, it is not correct because you have SORT FIELDS=COPY. "Duplicate" records means that the records have the same value for the key. With SORT FIELDS=COPY, you're doing a copy operation, so there is no key. You need to use SORT FIELDS=(p,m,f,s) or MERGE FIELDS=(p,m,f,s) where p,m,f,s is the key which defines which records are duplicates. _________________ 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