Lookup

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
pradkumar
Charter Member
Charter Member
Posts: 393
Joined: Wed Oct 18, 2006 1:09 pm

Lookup

Post by pradkumar »

Hi

I am trying to do a simple lookup and it is not working.
My jOb design is like this:

ODBC1---->TX(llokup with another ODBC2)-->ODBC3

In ODBC1 , I am joining few tables. and based on the key columns obtained from it I am doing a lookup with the
key columns present in ODBC2 to pull out one column.
When I designed the joba nd ran it, it gets executed but no lookup is performed.

What might be the problem?
Pradeep Kumar
ShaneMuir
Premium Member
Premium Member
Posts: 508
Joined: Tue Jun 15, 2004 5:00 am
Location: London

Re: Lookup

Post by ShaneMuir »

pradkumar wrote:Hi

In ODBC1 , I am joining few tables. and based on the key columns obtained from it I am doing a lookup with the
key columns present in ODBC2 to pull out one column.
When I designed the joba nd ran it, it gets executed but no lookup is performed.

What might be the problem?
At a guess - your keys don't match. Are you sure that the fields match exactly?
pradkumar
Charter Member
Charter Member
Posts: 393
Joined: Wed Oct 18, 2006 1:09 pm

Post by pradkumar »

They DO match
Pradeep Kumar
ShaneMuir
Premium Member
Premium Member
Posts: 508
Joined: Tue Jun 15, 2004 5:00 am
Location: London

Post by ShaneMuir »

pradkumar wrote:They DO match
Just looking for the obvious solution first - so there are no extra spaces in either table, non printing characters etc?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

More than likely you are wrong there and they in fact do NOT match. That is the most common problem when lookups 'fail' which is why Shane ask about it first.

Your other problem could be your lookup sql - is it generated or user defined? Do your keys match up properly with the positional parameter markers that ODBC uses?
-craig

"You can never have too many knives" -- Logan Nine Fingers
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 reference key and the parent key?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply