How to check if a column is positive !!

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
its_me48
Participant
Posts: 33
Joined: Fri Apr 29, 2005 10:09 am

How to check if a column is positive !!

Post by its_me48 »

I have a column (Total_Amount; Decimal(38,2)) that I want to check in the transformer stage. I want to check if its positive number and put some logic... I know the logic but cannot figure out a way to check if the column is positive?

Any pointers please...

Thanks!!
-Sam
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Generally, one would check if the value is greater than zero.
-craig

"You can never have too many knives" -- Logan Nine Fingers
its_me48
Participant
Posts: 33
Joined: Fri Apr 29, 2005 10:09 am

Post by its_me48 »

Ahh.... how did I miss this one? Thanks chulett, this tip worked like a charm.
chulett wrote:Generally, one would check if the value is greater than zero. ...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

One of those days, I guess. :wink:

Please mark the post as Resolved using the button at the top of the screen !!
-craig

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