How to solve this scenarios using Transformer

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
Prince_Hyd
Participant
Posts: 35
Joined: Mon May 06, 2013 5:59 am

How to solve this scenarios using Transformer

Post by Prince_Hyd »

Hi Folks

I have a source like this

Empno,Ename,MGR
101,Tarun,vinay
102,vinay,Anand

i need output like this

Empno,Ename,MGR
101,Tarun,vinay,Anand
102,Vinay,Anand,Anand

using Transformer how to solve this.


Thanks
rsomiset
Premium Member
Premium Member
Posts: 46
Joined: Fri Sep 21, 2007 7:16 pm

Post by rsomiset »

Would there be always be only two levels or it can be dynamic?
--
Raj
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

State your business / transformation requirements in words rather than making people puzzle them out based on simply posting input and output samples. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasannakumarkk
Participant
Posts: 117
Joined: Wed Feb 06, 2013 9:24 am
Location: Chennai,TN, India

Post by prasannakumarkk »

Classical solution should work. Self join!
Source -> Copy - > Two output link -> join -> Output.

And as usual the pitfalls in all the solution that is available for this problem statement persist like who is the manager of top executive, referential integrity setup.
Thanks,
Prasanna
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

When is the interview?

As noted, state the (full) requirement in words. This is called a specification, and may serve a useful mind-focussing exercise - you may even be able to come up with your own best solution.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Prince_Hyd
Participant
Posts: 35
Joined: Mon May 06, 2013 5:59 am

Post by Prince_Hyd »

Hi ray

finished.Interviewer asked me that scenario and i din't got how to solve that.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

State the (full) requirement in words. This is called a specification, and may serve as a useful mind-focussing exercise - you may even be able to come up with your own best solution.
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