Lookup not working

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
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

Lookup not working

Post by deesh »

Hi Friends,

When I am look uping data, look up is not working, data is coming as null but data is there, Moreover job is not showing any warning and failures.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Change your "Lookup Failed" rule.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

Re: Lookup not working

Post by deesh »

deesh wrote:Hi Friends,

When I am look uping data, look up is not working, data is coming as null but data is there, Moreover job is not showing any warning and failures.


""" I given Continue option""" In the same lookup I given two reference keys from two tables

Table1 Table2
1. opt1- sid
2.opt2- ikid -------> Table3

Second reference key is not working, First one is good.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What are the data types of the lookup keys? If string, are they equivalently trimmed?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

Re: Lookup not working

Post by deesh »

deesh wrote:Hi Friends,

When I am look uping data, look up is not working, data is coming as null but data is there, Moreover job is not showing any warning and failures.
---Its Varchar
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Two questions, one answer. Batting 500.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sbass1
Premium Member
Premium Member
Posts: 211
Joined: Wed Jan 28, 2009 9:00 pm
Location: Sydney, Australia

Post by sbass1 »

chulett wrote:Two questions, one answer. Batting 500.
ROTFLMAO

(Sorry for the acronym Ray :) It's probably not "business level" English either!)

deesh, what Craig is getting at is if your source data is "FOO " and your lookup is "FOO" you won't get a hit. This one has bitten me in the past.

So, as Craig said, make sure your data is trimmed equivalently. If you're not sure, print something like "^":your_data:"$" for both data elements to the log.
Some people are the Michael Jordan's of Datastage. I'm more like Muggsy Bogues :-)
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

Re: Lookup not working

Post by deesh »

deesh wrote:Hi Friends,

When I am look uping data, look up is not working, data is coming as null but data is there, Moreover job is not showing any warning and failures.
I am prepared same condition for two jobs but one job is working, second one is not working i given same conditions but not working.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Stop quoting yourself. And something is different between the two or both would be working. Do both jobs process the same data? Perhaps the second one needs more 'conditions' to handle it properly.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply