Datastage Scenario?

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
A_SUSHMA
Participant
Posts: 43
Joined: Fri Apr 12, 2013 10:34 am

Datastage Scenario?

Post by A_SUSHMA »

Hi All,

I have one scenario. Could you please Help me the below scenario.

INPUT IS

EMPNO,ENAME
100,SUSHMA
100,HARITHA
101,SUSHMA
101,SUSHMA
102,HARITHA
103,PUJA
103,PUJA
104,SUSHMA
104,HARITHA

I WANT OUTPUT AS

EMPNO,ENAME
100,HARITHA
101,SUSHMA
101,SUSHMA
102,HARITHA
103,PUJA
103,PUJA
104,HARITHA

In the above example where extract the ENAME group contains the name as HARITHA remaining records will be discard.

Thanks in Advance your Help...
soumya5891
Participant
Posts: 152
Joined: Mon Mar 07, 2011 6:16 am

Post by soumya5891 »

What is the DS version you are using?
Soumya
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And what have you tried so far? What issues did you have when you tried them?
-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 »

Why is 101,SUSHMA preserved, rather than 104,SUSHMA ?
What exactly are your transformation rules?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
A_SUSHMA
Participant
Posts: 43
Joined: Fri Apr 12, 2013 10:34 am

Post by A_SUSHMA »

Hi Ray,

In the above example I want to check EMPNO and ENAME.IF EMPNO is same and ENAME is 'SUSHMA' and 'HARITHA' Then only I want output EMPNO,ENAME is HARITHA and Remaining all are same.
RPhani
Participant
Posts: 32
Joined: Sun Aug 26, 2012 7:03 am
Location: Hyd

Post by RPhani »

Hi Sushma,

The below procedure will help for your Scenario.

1)EMPNo of HARITHA(100,102,104) are reference to a LookUp.
2)It's O/P has 5 recs and Rej has 4 recs(101,103).
3)Take a Transformer constaint ENAME='HARITHA' on LookUp O/P.
4)Funnel with LookUp Rejects

Thanks in advance for alternate ideas.
---------------------------------------
RPhani
Post Reply