<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sas dataset coversion to csv in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885768#M350030</link>
    <description>Have you read the sas documentation that explains numeric precision in SAS: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/p0dv87zb3bnse6n1mqo360be70qr.htm#p0kfa236d94cv1n1j93z8oyuoksp" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/p0dv87zb3bnse6n1mqo360be70qr.htm#p0kfa236d94cv1n1j93z8oyuoksp&lt;/A&gt;?</description>
    <pubDate>Fri, 21 Jul 2023 08:33:24 GMT</pubDate>
    <dc:creator>JosvanderVelden</dc:creator>
    <dc:date>2023-07-21T08:33:24Z</dc:date>
    <item>
      <title>sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885756#M350026</link>
      <description>&lt;P&gt;when I try to convert sas dataset into csv&lt;/P&gt;
&lt;P&gt;numbers like &lt;SPAN&gt; -1,825,189,000,000,000.&amp;nbsp;&lt;/SPAN&gt;becomes&amp;nbsp;&lt;SPAN&gt;-1.825189E15 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;how can I stop it happening when converting into csv?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 06:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885756#M350026</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-07-21T06:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885763#M350029</link>
      <description>&lt;P&gt;oh sorry wrong question, actually in sas it is showing as -1.825189E15 since length is set to 8 only&lt;/P&gt;
&lt;P&gt;now my question is what do I need to do in sas such that when it is converted to csv it is showing full number and not in scientific notation ?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 08:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885763#M350029</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-07-21T08:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885768#M350030</link>
      <description>Have you read the sas documentation that explains numeric precision in SAS: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/p0dv87zb3bnse6n1mqo360be70qr.htm#p0kfa236d94cv1n1j93z8oyuoksp" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/p0dv87zb3bnse6n1mqo360be70qr.htm#p0kfa236d94cv1n1j93z8oyuoksp&lt;/A&gt;?</description>
      <pubDate>Fri, 21 Jul 2023 08:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885768#M350030</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2023-07-21T08:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885772#M350032</link>
      <description>&lt;P&gt;I&amp;nbsp; dont get it I have length= 8 so should shown as 17digit integer but instead it gives me scientific notation&lt;/P&gt;
&lt;P&gt;what has gone wrong&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 08:47:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885772#M350032</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-07-21T08:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885773#M350033</link>
      <description>&lt;PRE&gt;data your_data;&lt;BR /&gt;numeric_value = -1.825189E15;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods excel file="path/to/output.xlsx" ;
proc report data=mydata ;
  columns _ALL_ ;
run ;
ods excel close ;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;You could try ods excel in combination with e. g. proc report instead of proc export, but I am not sure if that will produce your desired result. Could you provide some example code and data?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 09:01:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885773#M350033</guid>
      <dc:creator>_Manhattan</dc:creator>
      <dc:date>2023-07-21T09:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885774#M350034</link>
      <description>&lt;P&gt;Just run the code below and analize the csv file. You may need to change the filename statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename csvfile '~/csvfile.csv' encoding=utf8;

data _null_;
   file csvfile;
   largenumber = -1825189000000000;
   largenumber_fmt = largenumber;
   format largenumber_fmt comma32.;
   put "not formatted " largenumber=;
   put "format comma32. " largenumber_fmt=;
   largenumber + -9999999999999999;
   largenumber_fmt = largenumber;
   put "What if largenumber = largenumber + -9999999999999999?";
   put "not formatted " largenumber=;
   put "format comma32. " largenumber_fmt=;   
   positivelargenumber = 9007199254740992;
   positivelargenumber_fmt = positivelargenumber;
   format positivelargenumber_fmt comma32.;   
   put "not formatted " positivelargenumber=;
   put "format comma32. " positivelargenumber_fmt=;   
   positivelargenumber + 1;
   positivelargenumber_fmt = positivelargenumber;
   put "What if positivelargenumber + 1?";
   put "not formatted " positivelargenumber=;
   put "format comma32. " positivelargenumber_fmt=;   
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 09:11:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885774#M350034</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2023-07-21T09:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885837#M350058</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;oh sorry wrong question, actually in sas it is showing as -1.825189E15 since length is set to 8 only&lt;/P&gt;
&lt;P&gt;now my question is what do I need to do in sas such that when it is converted to csv it is showing full number and not in scientific notation ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And what FORMAT is assigned to the variable???&lt;/P&gt;
&lt;P&gt;Display is very much dependent on Format as well as length.&lt;/P&gt;
&lt;PRE&gt;data example;
   x= 12345678912345678;
   put x= best3. ;
   put x= best4. ;
   put x= best5. ;
   put x= best12. ;
   put x= best20. ;
run;&lt;/PRE&gt;
&lt;P&gt;Best tries to fit some display into the given number of positions. Why does the above show *** for the result of Best3.? Because even with scientific notation you need E plus 2 digits to indicate the approximate value which does not leave anything for the coefficient which appears before the E.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect when you look at the format for your variable you will find that it is a BEST12. (I counted the characters in your example value). Change of format will yield a different displayed value.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 15:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885837#M350058</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-07-21T15:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885846#M350064</link>
      <description>&lt;P&gt;What FORMAT did you attach to the variable?&lt;/P&gt;
&lt;P&gt;If you do not attach any format then SAS will use BEST12.&amp;nbsp; Which is what it looks like was used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To have it print all of those digits you will need to use the normal numeric format with a width of at least 17.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want it to print like the example in your question then you would need to attach the COMMA format.&amp;nbsp; With a width of at least 22.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if you do use the COMMA format then the CSV file will add quotes around the value to protect the embedded delimiters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  id +1 ;
  input number ;
cards;
-1825189000000000
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;697  data _null_;
698    set have;
699    file log dsd ;
700    put id number;
701    put id number :17. ;
702    put id number :comma22. ;
703  run;

1,-1.825189E15
1,-1825189000000000
1,"-1,825,189,000,000,000"
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jul 2023 16:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885846#M350064</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-21T16:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885848#M350065</link>
      <description>&lt;P&gt;Use formats&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Reeza_0-1689956441299.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85999i14FBD0F3A7BF8E4E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Reeza_0-1689956441299.png" alt="Reeza_0-1689956441299.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 16:20:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885848#M350065</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-07-21T16:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885878#M350067</link>
      <description>&lt;P&gt;There are lots of ways to export a dataset to CSV.&amp;nbsp; Which are you using?&amp;nbsp; Can you post a full, reproducible example?&amp;nbsp; Something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;
  x=  -1825189000000000 ;
run ;

*your code to export to CSV here ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jul 2023 17:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885878#M350067</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-07-21T17:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885913#M350080</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I&amp;nbsp; dont get it I have length= 8 so should shown as 17digit integer but instead it gives me scientific notation&lt;/P&gt;
&lt;P&gt;what has gone wrong&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;LENGTH determines how many bytes are used to store the value in the dataset.&amp;nbsp; Since numbers are stored as 64-bit floating point binary values you should use 8 bytes for the LENGTH.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How it prints is controlled by what FORMAT is used to display the value.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2023 02:27:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/885913#M350080</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-22T02:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886032#M350136</link>
      <description>&lt;P&gt;I dont mean proc print, in output data it is showing as -1.825189E15&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I searched all sas program, no formatting is done to this variable&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 04:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886032#M350136</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-07-24T04:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886033#M350137</link>
      <description>&lt;P&gt;By default, SAS uses the BEST12. format for numeric variables. When numbers are too large for 12 digits, the format switches to scientific notation to fit the number into the available space.&lt;/P&gt;
&lt;P&gt;When you count the characters in&amp;nbsp;&lt;SPAN&gt;-1.825189E15, you will end with 12.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You need to apply a suitable format before or during the export.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You have still failed to show your export code. Please do so NOW.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 05:58:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886033#M350137</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-07-24T05:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886035#M350139</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I dont mean proc print, in output data it is showing as -1.825189E15&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I searched all sas program, no formatting is done to this variable&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And as others told you already: If you don't apply a format to a numerical variable then default format best12 gets used. If you have a number with 15 digits then this format prints the number in scientific notation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to explicitly apply a different format for these numerical values. I'd be using best32.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 06:22:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886035#M350139</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-07-24T06:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886038#M350141</link>
      <description>&lt;PRE&gt;I was using the following:
libname thrznov "mpoint/baselii_30nov";
libname thrznov "mpoint/test";

data final;
set thrznov.final (encoding=any);
run;
proc export data=final outfile='/mpoint/test/final" dbms=csv replace;run;&lt;/PRE&gt;
&lt;P&gt;so it will work if I add format column_name best32. after 'set thrzbiv.final ....' line?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 07:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886038#M350141</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-07-24T07:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886042#M350144</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;so it will work if I add format column_name best32. after 'set thrzbiv.final ....' line?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your second LIBNAME overrides the first, the first one is not necessary.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 07:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886042#M350144</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-07-24T07:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886044#M350146</link>
      <description>&lt;PRE&gt;data test;
input sci;
datalines;
1.825189E15
8.796093E14
3.469447E-19
;
run;

proc print data=test;
run;

data test2;
set test;
format sci best32.;
run;
 
 proc print data=test2;
 run;&lt;/PRE&gt;
&lt;P&gt;I tried this, the 3rd one still give scientific notation, why??&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 07:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886044#M350146</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-07-24T07:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886046#M350148</link>
      <description>&lt;P&gt;From the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/leforinforref/p1fum54c93f8r0n1wrs5mrb05nzi.htm" target="_blank" rel="noopener"&gt;documentation of the BESTw. format&lt;/A&gt;&amp;nbsp;(Maxim 1!):&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;UL class="xisDoc-listUnordered"&gt;
&lt;LI class="xisDoc-item"&gt;Extreme values and values with leading or trailing 0s might be written in scientific notation to fit into the specified width, to increase the precision, or to &lt;STRONG&gt;simplify the magnitude of the number&lt;/STRONG&gt;. Extremely small values might be written as 0 if the width is too small for scientific notation.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;(emphasis by me)&lt;/P&gt;
&lt;P&gt;Your output is the result of BESTw. trying to make numbers as human-readable as possible. When having numbers of wildly different magnitude in one column, the scientific notation is most helpful.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 08:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886046#M350148</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-07-24T08:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886084#M350157</link>
      <description>&lt;P&gt;Because that is what the BEST format does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you know the values are integers then do not use BEST.&amp;nbsp; Just use normal numeric format&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format sci 32.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you can use F as an alias for the normal numeric format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format sci F32.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It doesn't matter if the width is more than your data needs since leading (and trailing) spaces are removed from the values written to a delimited file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But what was wrong with leaving the value in scientific notation? What tool are you using to read the CSV?&amp;nbsp; Why can't it read such a normal way to express a number?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 13:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886084#M350157</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-24T13:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset coversion to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886931#M350454</link>
      <description>&lt;P&gt;Hi Tom, thank you for your explanation.&lt;/P&gt;
&lt;P&gt;later I find out DB2 can actually take scientific notation as number when read from csv. It was only the length of data type not correct.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2023 01:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-coversion-to-csv/m-p/886931#M350454</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-07-29T01:23:56Z</dc:date>
    </item>
  </channel>
</rss>

