how to do this

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
harikumar
Participant
Posts: 33
Joined: Wed Apr 21, 2010 9:19 pm
Location: banglore

how to do this

Post by harikumar »

i have source file like
empno,ename
10, aa
20, dd
30, bb
10, cc
40, kk
30, jj

i want to target like this
empno,ename,column
10, aa 2
20, dd 1
30, bb 2
10, cc 2
40, kk 1
30, jj 2
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

How do you calculate column? Is it based on Empno?
You are the creator of your destiny - Swami Vivekananda
harikumar
Participant
Posts: 33
Joined: Wed Apr 21, 2010 9:19 pm
Location: banglore

Post by harikumar »

anbu wrote:How do you calculate column? Is it based on Empno?

requirement like that
i have also same doubt
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

harikumar wrote:
anbu wrote:How do you calculate column? Is it based on Empno?

requirement like that
i have also same doubt
In that case you need to be asking the person who gave you that requirement and not this forum members.

:idea: Btw, the third column appears to be the number of times the first column has appeared in your input.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

This is a classic fork-join design. Search for "fork join".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply