To check the value of a decimal column is negative/positive

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
sudarsan
Participant
Posts: 31
Joined: Fri Nov 17, 2006 4:14 am

To check the value of a decimal column is negative/positive

Post by sudarsan »

Hi,

Could any one suggest me how to check whether the value of a column(data type - decimal) is negative/positive.

Thanks,
Sudarsan.
ShaneMuir
Premium Member
Premium Member
Posts: 508
Joined: Tue Jun 15, 2004 5:00 am
Location: London

Post by ShaneMuir »

The easiest way would be to test if its less than zero.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I agree. Use an If..Then..Else construct.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sudarsan
Participant
Posts: 31
Joined: Fri Nov 17, 2006 4:14 am

Post by sudarsan »

Thanks a lot
Thank You,
Sudarsan AVS
Post Reply