Pre-look up condition Failing even values are matching

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
devesh_ssingh
Participant
Posts: 148
Joined: Thu Apr 10, 2008 12:47 am

Pre-look up condition Failing even values are matching

Post by devesh_ssingh »

Hi,

I have one multi-instace job which is failing due to pre-look condition mistmatch even though the values are matching.

thr condition is
NullToZero(total_row_Amt)=NullToZero(Source_TOT_AMT)
values are
000159981855319403.000= 000159981855319403.000

however when i remove NullToZero function job run successfully
total_row_Amt=Source_TOT_AMT
i could have simply done this but this is Multi-instance job and used across mny sequece so can not risk to change this.

total_row_Amt and Source_TOT_AMT have data type decimal (21,3)
but there source are aggegation of sevel 100 columns have simmilar datatype.


seeking help on this..please let me know for further information.

Thanks and regards,
Devesh
devesh_ssingh
Participant
Posts: 148
Joined: Thu Apr 10, 2008 12:47 am

Post by devesh_ssingh »

no replies till now :cry:
premupdate
Participant
Posts: 47
Joined: Thu Oct 04, 2007 3:37 am
Location: chennai

Post by premupdate »

How are you comparing the values
Cheers,
prem
devesh_ssingh
Participant
Posts: 148
Joined: Thu Apr 10, 2008 12:47 am

Post by devesh_ssingh »

NullToZero(total_row_Amt)=NullToZero(Source_TOT_AMT)
Anything wrong in this?
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

My understanding is, Int family data type will have the default vaue as 0. So NullToZero dosen't make any value.

Correct me if i am wrong.

DS User
premupdate
Participant
Posts: 47
Joined: Thu Oct 04, 2007 3:37 am
Location: chennai

Post by premupdate »

Comparision done in transformer or lookup.

If in transformer,do you use stage variable?
Cheers,
prem
devesh_ssingh
Participant
Posts: 148
Joined: Thu Apr 10, 2008 12:47 am

Post by devesh_ssingh »

Its Pre-look up condition
so its carried in Look up satge only
devesh_ssingh
Participant
Posts: 148
Joined: Thu Apr 10, 2008 12:47 am

Post by devesh_ssingh »

:(
suse_dk
Participant
Posts: 93
Joined: Thu Aug 11, 2011 6:18 am
Location: Denmark

Post by suse_dk »

The condition should be alright.

Try to set the lookup failure options to continue and view the result in a peak stage - Do you have a lookup match where your condition is true?
_________________
- Susanne
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I'm wondering if it's imprecision in decimal storage, though your precision and scale look OK for the values you're using. As a test, can you try converting them to string for the purpose of comparison?

Amending Suzanne's suggestion slightly, can you use a reject link and set your Condition Not Met rule to "output"? Again, this is just for test purposes.
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