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
swathi Singamareddygari
Participant
Posts: 48 Joined: Fri Feb 29, 2008 1:09 am
Location: Bangalore
Post
by swathi Singamareddygari » Wed May 27, 2009 5:19 am
Hi all,
I am facing problem with sparse lookup.
If i do sparse lookup with a key field having datatype Decimal (other than varchar ) ,even though matching records are there in the reference table,lookup is not working.
But if i do the same thing with key field having datatype varchar its working
If any one knows please help me .
Thanks for your help.
Thanks&Regards
S.Swathi
miwinter
Participant
Posts: 396 Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK
Post
by miwinter » Wed May 27, 2009 5:26 am
What are the datatypes on your primary and reference links? If they are both Decimal, are they of equal precision and scale?
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
nagarjuna
Premium Member
Posts: 533 Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago
Post
by nagarjuna » Wed May 27, 2009 5:40 am
swati ,
please note that whatever datatypes present in reference link should match with the primary link .
Nag
swathi Singamareddygari
Participant
Posts: 48 Joined: Fri Feb 29, 2008 1:09 am
Location: Bangalore
Post
by swathi Singamareddygari » Wed May 27, 2009 6:20 am
Hi ,
Thanks for your responses.
The datatype of the fields in both link are same and it is decimal(4,0).
I tried converting both fields to varchar and then doing lookup that time its working fine,
I am not getting what's wrong with decimal datatype.
Thanks&Regards
S.Swathi
miwinter
Participant
Posts: 396 Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK
Post
by miwinter » Wed May 27, 2009 6:38 am
Can you peek out some of the problem records failing to make a match, to see actual values, when you define them as decimals?
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
swathi Singamareddygari
Participant
Posts: 48 Joined: Fri Feb 29, 2008 1:09 am
Location: Bangalore
Post
by swathi Singamareddygari » Wed May 27, 2009 7:19 am
Hi all,
Thanks for your responses,
My problem got sloved,actually the datatype is decimal(4,0),
datastage is treating it as integer because the scale is zero,
So if i change it to integer its working fine.
Thanks for your help
Thanks&Regards
S.Swathi