Transformer Constraint

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
mekrreddy
Participant
Posts: 88
Joined: Wed Oct 08, 2008 11:12 am

Transformer Constraint

Post by mekrreddy »

Hello,
I one of our jobs we are comparing date with max of that date field from previous day data, i am using this condition in Tx Constraint. but in our source data we have some records with null values in the date field, and comparision failing because of that, I want to give some value in place of null. so that my comparision does not fail, i want give some (01/01/1900) in place of null,

any idea/suggestion please..
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There should be a NullToValue transform in there, if not it would be easy enough to create one. Check NullToEmpty and NullToZero for inspiration.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sajidkp
Participant
Posts: 114
Joined: Thu Apr 30, 2009 12:17 am
Location: New Delhi

Post by sajidkp »

If you are querying the source then best thing would be a null handker in the query itself

Like in Sqlserver Isnull(col,'01/01/2009')
Regards,
Sajid KP
chvenkat.v
Participant
Posts: 94
Joined: Fri Dec 14, 2007 3:22 am

Post by chvenkat.v »

If you problem is solved then
please make this topic as resolved.....
Post Reply