Filtering Look Up Table

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
Munish
Participant
Posts: 89
Joined: Sun Nov 19, 2006 10:34 pm

Filtering Look Up Table

Post by Munish »

Hi Everybody,
Wishing you all a very happy new year.

My datasource is a dataset (DS1) created by previous job.
I need to add an extra columns and pass on this as new dataset (DS2)
(DS1 + new column)

This new column is the one which I want to get from Lookup table.
I have no column to lookup in DS1 against Lookup Table.

My lookup table have keys and CD for ChargeTypes.
I need to append my DS1 with the Key value from Lookup Table.


Could any one help me with that.

Thanks and regards,
Munish
MK
sudeepmantri
Participant
Posts: 54
Joined: Wed Oct 25, 2006 11:07 pm
Location: Hyderabad

Re: Filtering Look Up Table

Post by sudeepmantri »

Hi, What I understand is u need to add one more column to the intermediate dataset, that column is a key field in your reference table n u dont have anything to make lookup. If this is ur problem, try out this. After ur intermediate dataset, add a column generator to generate a dummy integer value of 1( by setting it's initial value as 1 and increament by 0). Select from the reference table the column u wish to add say x and 1. Query-- select x,1 as dummy from table name. MAke the lookup on this dummy field. as the refernce and souce both have 1, all the record will have a match. Then u can propagate the key column and the rest of the field from the input dataset. Hence the diagram will be--------- Dataset->Col. generator->Lookup->dataset
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

I guess the requirement is same as your other post. viewtopic.php?t=106337&highlight=
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Munish
Participant
Posts: 89
Joined: Sun Nov 19, 2006 10:34 pm

Post by Munish »

Hi Sandeep and Kumar,
Thanks for your advices.
It is the same requirement as in my other post.

Regards,
Munish
MK
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

So is it you got the solution or expecting something else. If yes, you can close the post.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

:idea: Better mark this one as resolved, 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.
Munish
Participant
Posts: 89
Joined: Sun Nov 19, 2006 10:34 pm

Post by Munish »

Hi Ray and Kumar,
Thanks for your support.
Closing the job.
Regards,
Munish
MK
Post Reply