Hi everyone.
I am using SAS Data Integration Studio to load data from CSV into SAS DI Studio.
However, there are some data with 10 decimal place such as :
0.0000001919
When loading into SAS dataset, it will become excel style such as :
9E-7( and etc)
However, my CSV is still showing 0.0000001919.
I remain blank for Informat and format. Do take note that some of the numeric values have absolute number instead of decimal place.
Can anyone help me with this?
Assign it a best. format with a sufficient length, like best20.
Hi Kurt. I've tried BEST20. for informat first, then format.
However, no matter assigning the informat or format, the value will remain
9.54E-7
Do take note that this is numeric in excel and SAS.
Seeking for your further help.
@imdickson wrote:
Hi Kurt. I've tried BEST20. for informat first, then format.
However, no matter assigning the informat or format, the value will remain
9.54E-7
Do take note that this is numeric in excel and SAS.
Seeking for your further help.
I would really like to see the entire process as I suspect there is something missing from your description to turn "0.0000001919" into 9.54E-7. I would believe 1.919E-7 (default to best8. format). You may want to use a format other than BEST as it has some issues regarding digits displayed for small values:
data example; x="0.0000001919"; y=input(x,best20.); put y= best8. y= best15. y= f14.10; run;
I managed to solved this by using 20.10 FORMAT.
Thanks everyone
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.