Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Need help converting ws_str to numeric

$
0
0

Hi All,

I have a column where the data dictionary defines it as number 12,5.

When I read the flat file in, I have the column defined as data precision 12 and data scale 5. When I run the package, it fails because of these attributes. I then change the column to ws_str 50 and used the derived column to change it to numeric, thusly:

ISNULL(AMT_AWP) ? NULL(DT_NUMERIC,12,5) : (TRIM(AMT_AWP) == "" ? NULL(DT_NUMERIC,12,5) : (DT_NUMERIC,12,5)(TRIM(AMT_AWP)))

This fails as well with a generic error message. An example of the value is 000107561500, which should be expressed as 1075.61500

What am I doing wrong?

Thanks.

Dave


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>