Transformer Constraint Data Filtering Issue

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
mkkgupta
Premium Member
Premium Member
Posts: 17
Joined: Thu Jan 24, 2008 10:13 pm

Transformer Constraint Data Filtering Issue

Post by mkkgupta »

Hi,
I want to drop records if both column1 and column2 are null.

Source & Target columns are defined as nullable. I am using xfrm constraint with following condition however it is dropping all records if either is null
IsNotNull(COL1) And IsNotNull(COL2)

ex.
source 50K records.
expected 3 records should reject where 10k rejected as one of them is null but not both.

Thank you for your help.
Regards
Kiran
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yup - your constraint says both need to be non-null to pass. You want an or rather than the and there to say it's only bad if both are null.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply