Lookup FileSet question

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
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Lookup FileSet question

Post 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.
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Drop Col2 column from DS1.
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Post 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.
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Post by abc123 »

Also, what is the
Keep = True
sub property uner key for? There is no explanation of it anywhere.

Thanks.
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Post 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.
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

modify operator means modify stage?
hi sam here
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

samsuf2002 wrote:modify operator means modify stage?
Correct.
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Post 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.
Post Reply