If the data in column 8-16 are same but the data in column 1-6 are different, then count it. Then output the column 8-16 and the count number (with a space between them).
So the expected output file is -
Code:
aaaaaaaaa 2
bbbbbbbbb 1
This is because for 'aaaaaaaaa', 2 different value (111111 & 222222) can be found. and for 'bbbbbbbbb' only 1 value can be found.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Thu Jul 19, 2007 11:26 am Post subject:
Dragon,
Here's a DFSORT job that will do what you asked for in one pass. I assumed you wanted three digits with leading zeros for the count. If not, you can change the EDIT mask to give you what you want.
_________________ 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
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Thu Jul 19, 2007 1:16 pm Post subject:
Great minds "sink" in the same channels. _________________ 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