Decimal field 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
sethuraman
Participant
Posts: 8
Joined: Tue Jan 12, 2010 10:34 pm
Location: Chennai

Decimal field validation

Post by sethuraman »

Hi,
I have a input file and i read the value " 2222.22" as Char(12) and I convert it to Decimal(11,2).
By the way, I should validate it as if it has only numbers and no other characters is there like " 33AB.33". If at all any characters found then i should reject the record. how to handle this validation? Please help.


Thanks,
Sethuraman.
tsamui
Participant
Posts: 23
Joined: Fri May 04, 2007 3:05 am
Location: Kolkata

Re: Decimal field validation

Post by tsamui »

Have you tried with Num function in transformer?
Thanks&Regards
-------------------
Tsamui
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why not use the IsValid() function?
-craig

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