look up issue

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
adams06
Participant
Posts: 92
Joined: Sun Mar 12, 2006 3:00 pm

look up issue

Post by adams06 »

Hi,


I am doing a lookup, both sorce and lookup(hash file) has matching records. but the records are not hooking up, and no data is coming from lookup.

i deleted the hash file and recreated it.

can some let me what's the prob.

Thanks in advance.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Either the source or the hashed file has spaces in the key. Make sure you trim the keys while building the hashed file and also trim the keys during the lookup coming from the source.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

Or there are no matching records :wink:
Kris

Where's the "Any" key?-Homer Simpson
prabu
Participant
Posts: 146
Joined: Fri Oct 22, 2004 9:12 am

Re: look up issue

Post by prabu »

adams06 wrote:Hi,


I am doing a lookup, both sorce and lookup(hash file) has matching records. but the records are not hooking up, and no data is coming from lookup.

i deleted the hash file and recreated it.

can some let me what's the prob.

Thanks in advance.
i like your terminology
hooking up
:lol: .
1)check if your keys are set proper.
2)check for any whitespace characters in your source/lookup files. use trim in the looku"p key.
3)choose some key you know will be "hooked up" and
try view data to match it in source and lookup file, manually.



regards,
Prabu
meena
Participant
Posts: 430
Joined: Tue Sep 13, 2005 12:17 pm

Post by meena »

Hi Adam06..
What is your source? What is your lookup? Are you using hash file or DB2 etc for look up.. On which column datatype you are performing look up....
vsi
Premium Member
Premium Member
Posts: 507
Joined: Wed Mar 15, 2006 1:44 pm

Post by vsi »

Hi Adam
Make sure the format of the data you are comparing is the same, for ex. date(yyyy-mm-dd) should be compared to same format and as others suggested trim plays important role in look up's,
Post Reply