Decimal Validation

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
vskr72
Premium Member
Premium Member
Posts: 128
Joined: Wed Apr 28, 2004 9:36 pm

Decimal Validation

Post by vskr72 »

I have a column from a text file as '0000000045788999' and I need to do the following:
1. need to perform a decimal validation on it for decimal[18,2].
2. For this I am dividing it by 100 to see if its a valid decimal
3. then set T or F based on the outcome.

When I divide by 100, its becoming as 4.5789e10^5. So, its taking an exponent form and this is failing the validation. How to make it avoid taking the exponent form. Thank you.
Kryt0n
Participant
Posts: 584
Joined: Wed Jun 22, 2005 7:28 pm

Post by Kryt0n »

What is wrong with IsValid(decimal) which I would hope considers the example to be a decimal? Your result would imply your target field for the division is a float (I think)...
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Post by kandyshandy »

So you want to validate a field from text file? What is the data type of this field in the sequential file stage?
Kandy
_________________
Try and Try again…You will succeed atlast!!
Post Reply