Conversion factors inserted as double are read and converted
Moderators: chulett, rschirm, roy
Conversion factors inserted as double are read and converted
I have a process that reads a flat file of UOM data to insert into a table for subsequent processing. The column in the table is defined as DECFLOAT and I insert it as DOUBLE with no issues. Querying the rows in my SQL tool shows all values the same however when I read the table with Datastage some of the values are converted to scientific format, ie exponential. Is there a setting or cast function that will leave these values as is?
What datatype are you using in DataStage?
(This is a trick question, since "float" or "dfloat" use a binary representation and only convert to display format when you display the value - which would be the point in time when a conversion to an exponential format would occur).
(This is a trick question, since "float" or "dfloat" use a binary representation and only convert to display format when you display the value - which would be the point in time when a conversion to an exponential format would occur).
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
The file is also a "viewer", since the data is being written a text, so a conversion has taken place. You need to specify a column output format to override the default. I like "%f" (see the documentation for sprintf() for an explanation)
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>