Page 1 of 1

Trim for Numeric/Decimals

Posted: Wed Oct 23, 2013 10:10 am
by kollurianu
Hi ,

Is it ok to trim the Numeric/Decimal fields from a sequential file and load to Numeric/Decimal fields on target database?

Thanks

Posted: Wed Oct 23, 2013 10:44 am
by asorrell
If you are reading the columns as VARCHAR from the sequential file and later converting them to numeric / decimal, then yes - it is ok to trim the VARCHAR field.

If you are reading them in as decimal / numeric, then no Trim is needed, numeric / decimal values do not contain spaces.

Posted: Fri Oct 25, 2013 9:37 am
by kollurianu
Thanks Andy !