Lookup issue with blank column

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
siauchun84
Participant
Posts: 63
Joined: Mon Oct 20, 2008 12:01 am
Location: Malaysia

Lookup issue with blank column

Post by siauchun84 »

Hi

I have a job with a Lookup stage which will lookup for the location ID from a reference file.

When my input is "" (blank), it cannot retrieved the location ID which assigned for the value of the "" (blank).

Anyone face this before and any solution for it?

Please advice.

Thanks.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please be clear here.

Are we talking about a blank (" ") or a zero-length string ("") as the lookup key value? Your terminology is loose.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
singhald
Participant
Posts: 180
Joined: Tue Aug 23, 2005 2:50 am
Location: Bangalore
Contact:

Post by singhald »

As Ray suggested , please be clear when you post your problem.

I believe you can assign a dummy value(like 'X' should be unique and different from your location id available in reference link) to input key in case of null.

do the same with your reference link data )assign 'X' to location id which is null.

now lookup stage will fetch location details for 'X' locaiton id which it is basically null in source .
Regards,
Deepak Singhal
Everything is okay in the end. If it's not okay, then it's not the end.
siauchun84
Participant
Posts: 63
Joined: Mon Oct 20, 2008 12:01 am
Location: Malaysia

Post by siauchun84 »

Hi Ray

Sorry for the confusion, it was zero-length string ("").
In the reference file, we have assigned a location ID for the "" value.
Whenever the input records have "" value, it will get that assigned location ID for it.
This terminology was working fine when in Server job previously.
I just hit this issue when converting the Server jobs into the Parallel Jobs and those records with the zero-length string rejected during the lookup stage.

Was this the limitation for the lookup stage or I have to turn on some setting for it?


Hi Deepak

Thanks for your great idea given. Actually I have tried your idea but it bring into the jobs performance issue as it will running slow because I have to add additional stage to perform the assign dummy value task for both input link and reference link.
Post Reply