Datastage Unstructured Stage - Reading Values in Scientific Notation - Ex - 1.59256E+14

 Recently I built a Datastage job using Unstructured stage to read data from an Excel file into a Database table.

I read all columns as Varchar. Excel automatically puts large numeric values into scientific notation.


The Unstructured stage read these values as it is with the E+ Notation. To resolve this, we had to set an Environment variable CC_UNST_SUPPRESS_SCIENTIFIC_NOTATION to 1.


This will Suppress the Scientific Notations and let the complete numeric value be read and propagated through the job.

Value in Output - 159255666445850





4 Comments

  1. Interesting. Did not think of this scenario. Thank you for posting.

    ReplyDelete
  2. I am very new to datastage could you elaborate more on how to add that environment variable? It does not automatically appear in the list of environment variables

    ReplyDelete
    Replies
    1. Try to add it directly to job parameters by just typing the environment variable name and set its value.

      Delete
    2. You can just type in $CC_UNST_SUPPRESS_SCIENTIFIC_NOTATION and put its value as 1.

      Delete
Previous Post Next Post

Contact Form