Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Wed Aug 06, 2014 3:29 pm Post subject:
Magesh_J,
Since you want to sum and still retain the duplicate keys you need to use the trick of using the same file twice for Joinkeys and get the desired results. I assumed your input is RECFM=FB and LRECL=80. I also assumed that your account has only positive values (389,390, 400...) if you have negative account numbers then we need to normalize the matching key using JNF1/JNF2. I will leave that for you to solve.
This is brilliance and awesome... I was doing with two steps, 1st sum the value and second step using join key... never had a thought to use same input file.
Joined: 22 Mar 2013 Posts: 21 Topics: 7 Location: Fort Worth, TX
Posted: Mon Aug 18, 2014 6:07 pm Post subject: kolusu is a genius w/dfsort ... u can put that in the bank
Magesh_J wrote:
This is brilliance and awesome... I was doing with two steps, 1st sum the value and second step using join key... never had a thought to use same input file.
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