Lookup Logic

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
kashif007
Premium Member
Premium Member
Posts: 216
Joined: Wed Jun 07, 2006 5:48 pm
Location: teaneck

Lookup Logic

Post by kashif007 »

I have got redundant data in my lookup. Due to this its grabbing only the first value and leaving the second one. How can I make the second redundant value as the output as well when I am doing a lookup. Can I do a row wise lookup. Rather than a column wise lookup.

Please help.
Regards
Kashif Khan
panchusrao2656
Charter Member
Charter Member
Posts: 64
Joined: Sat Sep 17, 2005 10:42 am

Post by panchusrao2656 »

you can use a join stage to get all matching records otherwise in the lookup stage use the option return multiple rows from the link you want to get all matches
kashif007
Premium Member
Premium Member
Posts: 216
Joined: Wed Jun 07, 2006 5:48 pm
Location: teaneck

Post by kashif007 »

Yeh "Return Multiple rows" kinda helps. But its giving me output just like a join. But since I am doing a lookup for 22 rows I need to get 22 rows as output. Instead I get 132 rows. Do you suggest anything else.
Regards
Kashif Khan
panchusrao2656
Charter Member
Charter Member
Posts: 64
Joined: Sat Sep 17, 2005 10:42 am

Post by panchusrao2656 »

you mean, you want all 22 matches in 22 columns of the same record.
kashif007
Premium Member
Premium Member
Posts: 216
Joined: Wed Jun 07, 2006 5:48 pm
Location: teaneck

Post by kashif007 »

No no no. Ok you see I have 22 input records, and 14 refrence lookup. All I need is to see the value of one particular record in the reference and get the values associated to it even though its redundant like 5 times. I want to grab only 5 correcponding rows from refrence lookup. Does this helps you. I can give an example if you are confused.
Regards
Kashif Khan
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Check the other post. I hope that will help.
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Order the lookup data in the other order based on the lookup key as the lookup value.
But give some example to get more details.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply