Trim for Numeric/Decimals

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
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Trim for Numeric/Decimals

Post 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
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post 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.
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

Thanks Andy !
Post Reply