need help on 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
bhargav_dd
Premium Member
Premium Member
Posts: 57
Joined: Tue Jun 30, 2009 9:38 am

need help on this

Post by bhargav_dd »

hi friends,
I have I/p like,
empno sal
ravi 1000
raju 2000
srinu 3000
rao 500

i want o/p like
empno sal
ravi 1000
ravi 1000
raju 2000
raju 2000
raju 2000
raju 2000
srinu 3000
srinu 3000
srinu 3000
srinu 3000
srinu 3000
srinu 3000
rao 500
can any one explain how can i achieve this?
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

Could you elaborate what is the rule that defines how many times a row should be duplicated?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Seriously, how can you expect anyone to know your secret rules on how to generate that output? It's nice that you posted what you need it to look like but you also need to explain in words the business rules / methodology you've been given to get there - don't make people guess or have to puzzle it out. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I think I know what the rule is, but will await the original poster's response.

A meaningful subject line would have been good, too.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I would change it if I had any idea what to put there. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
stuartjvnorton
Participant
Posts: 527
Joined: Thu Apr 19, 2007 1:25 am
Location: Melbourne

Post by stuartjvnorton »

InfoSphere has a MindReader stage, but it comes at an extra charge, IIRC.
ds@tcs
Participant
Posts: 24
Joined: Thu Mar 17, 2011 6:26 am
Location: chennai
Contact:

Re: need help on this

Post by ds@tcs »

post clear query
Regards
Sankar
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

This has a fairly easy resolution in 8.5 (if my guess about the requirement is correct) but is more difficult - but not impossible - in earlier versions.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
bhargav_dd
Premium Member
Premium Member
Posts: 57
Joined: Tue Jun 30, 2009 9:38 am

Post by bhargav_dd »

i have got the desired output but for your information i am not taking about any business rules i just gave an example to my requirement so that it can be easily understood
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

bhargav_dd wrote:i am not taking about any business rules i just gave an example to my requirement so that it can be easily understood
We know, that's the problem - and from the responses here you can see it didn't work... well, except perhaps for Ray. So are you saying you've already solved this problem? If you still need help, as requested, clarify the rules needed to get from A to B.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply