Page 1 of 1

Loopup Using Lookup file set

Posted: Thu Jun 26, 2008 1:01 am
by senthilt1
Hi All,

Should the key column of Loopup file set and the main input be same?

I am having a column called Cust_Id Varchar(10) as the key in Main Link.
In Lookup file set am having the Key column as DOC_Id Varchar(10).
Am not able to loopup with these as the key columns

If the key column name is different is it not possible to use the lookupfile set? so do we need to use Seq file as the loopup?

Please clear my doubt.

Thanks,
SenthilP

Posted: Thu Jun 26, 2008 1:13 am
by ray.wurlod
If it's a Lookup File Set servicing the reference input, then the lookup key column on the stream link must have the same name as the key column defined for the Lookup File Set. You can cheaply achieve a column name change using a Copy stage on the stream input.

Posted: Thu Jun 26, 2008 2:57 am
by senthilt1
Hi Ray,

Sorry for disturbing u,,,I am not premium member could you please let me know the solution for this.

My assumption is using the copy stage we can rename the Main link key column such as same as Lookup key column name. Can i go with this approach.

Thanks,

Senthil P

Posted: Thu Jun 26, 2008 4:34 am
by poornima.chandramouli
senthilt1 wrote:Hi Ray,

Sorry for disturbing u,,,I am not premium member could you please let me know the solution for this.

My assumption is using the copy stage we can rename the Main link key column such as same as Lookup key column name. Can i go with this approach.

Thanks,

Senthil P
Hi Senthil,

The column name should be same while using the Lokkup fileset.
Otherwise you can use a parallel dataset for doing the lookup.

Thanks

Posted: Thu Jun 26, 2008 5:12 am
by senthilt1
Thanks Poornima.Chandramouli for your info.

Havent tried it yet, will let you know once it works out.

SenthilP