Page 1 of 1

Number format

Posted: Wed Aug 12, 2009 2:54 pm
by devanars
How can i replace the number from 0009998888 to 000-999-8888

Posted: Wed Aug 12, 2009 3:03 pm
by arun_im4u
I assume you want to convert a number into a string value in this format. You cannot have dashes in number fields.

Convert the number to string and use a substring function in your transformer..

substr(input_column,1,3):'-':substr(input_column,4,3):'-':substr(input_column,7,4)

Posted: Thu Aug 13, 2009 8:51 am
by devanars
can we use the same in parallel jobs also

Posted: Thu Aug 13, 2009 9:04 am
by arun_im4u
Absolutely.