The constraing is not working properly in Transformer but wo

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
rhaddur
Participant
Posts: 52
Joined: Mon Mar 13, 2006 7:33 am
Location: mumbai

The constraing is not working properly in Transformer but wo

Post by rhaddur »

In Transformer Stage following the constraint not working Properly


Here
x is varchar
y, z, zz are decimal

Constraint

(x <> "ZZZB" And )
(
((IsNotNull(Y)) AND (Y<>0))
Or ((IsNotNull(z)) AND (z<>0))
Or ((zz)) AND (zz<>0))
)

But Working in Filter Stage

Condition

(x<>'ZZZB' AND
(
((Y Is Not Null) AND (Y<>0))
Or ((z Is Not Null) AND (z<>0))
Or ((zz Is Not Null) AND (zz <>0))))

Kindly let me know what could be the reason it is not working Properly in Transformer Stage
Rhaddur
ag_ram
Premium Member
Premium Member
Posts: 524
Joined: Wed Feb 28, 2007 3:51 am

Post by ag_ram »

We had a Similar issue and the workaround was splitting the ISNotNull and Comparison clause

Nutshell

If IsNotNull(Y)
Then
If (Y<>0)
<case1>
Else
<case2>
Else
<case1>
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: The constraing is not working properly in Transformer bu

Post by gateleys »

rhaddur wrote:Constraint

(x <> "ZZZB" And )
(
((IsNotNull(Y)) AND (Y<>0))
Or ((IsNotNull(z)) AND (z<>0))
Or ((zz)) AND (zz<>0))
)
Your code looks all over the place. Can you please copy the exact from your transformer?
gateleys
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Here's a crazy thought - why not explain to us in words what this is supposed to accomplish and then let us know what's not "working properly" about it?
-craig

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