Page 1 of 1

Lookup FileSet question

Posted: Mon Oct 30, 2006 7:54 pm
by abc123
My job has a dataset stage, DS1, as source, a lookup stage in the middle and a sequential file stage as target. The lookup stage is receiving an input link from a lookup file set stage. I also have an output reject link to a dataset stage. What I want to do is, if there is a match on Col1 of the incoming dataset with the reference link coming from the Lookup Fileset stage, I would like Col2 from the incoming Lookup Fileset stage to replace Col2 of the incoming dataset and send all columns to the target sequential file stage. This is not happening.

My lookup fileset stage was created by using a dataset file called DS2. The only difference between DS1 and DS2 is that DS2 has actual values of Col2 which will be used to update whereas DS1 has all dummy values in Col2.

Thanks.

Posted: Mon Oct 30, 2006 8:34 pm
by balajisr
Drop Col2 column from DS1.

Posted: Mon Oct 30, 2006 10:01 pm
by abc123
I already am. Eventhough Col2 is coming in to the lookup stage, it doesn't get moved among the output columns of that go into the sequential file stage. Col2 from the Lookup fileset stage get moved to output.

Posted: Mon Oct 30, 2006 10:09 pm
by abc123
Also, what is the
Keep = True
sub property uner key for? There is no explanation of it anywhere.

Thanks.

Posted: Mon Oct 30, 2006 10:18 pm
by abc123
I found the solution. I used a modify operator to exclusively drop the column. Interesting. Just not linking the column in the lookup stage does not work.

Posted: Mon Oct 30, 2006 10:51 pm
by samsuf2002
modify operator means modify stage?

Posted: Tue Oct 31, 2006 2:02 am
by balajisr
samsuf2002 wrote:modify operator means modify stage?
Correct.

Posted: Tue Oct 31, 2006 9:05 am
by abc123
Yes, I meant the Modify stage. Can anyone tell me what
Keep = True
sub property under Key for? It is not documented anywhere.