<?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: decimal in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Scientific-notation-while-exporting-to-csv/m-p/859327#M339524</link>
    <description>&lt;P&gt;What method are you using for the export?&lt;/P&gt;
&lt;P&gt;If you specify a format with an explicit length for that variable it might help, e.g., "14."&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2023 08:44:33 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2023-02-17T08:44:33Z</dc:date>
    <item>
      <title>Scientific notation while exporting to csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-notation-while-exporting-to-csv/m-p/859305#M339517</link>
      <description>&lt;P&gt;when I convert sas dataset to csv one file looks like this&lt;/P&gt;
&lt;P&gt;2.0223322E12&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how can I transform its format before converting to csv so that it looks like a normal decimal?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 08:51:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-notation-while-exporting-to-csv/m-p/859305#M339517</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-02-17T08:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: decimal</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-notation-while-exporting-to-csv/m-p/859306#M339518</link>
      <description>&lt;P&gt;sorry I need look like a 14 digit no not a decimal&lt;/P&gt;
&lt;P&gt;eg 12345678901234&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 03:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-notation-while-exporting-to-csv/m-p/859306#M339518</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-02-17T03:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: decimal</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-notation-while-exporting-to-csv/m-p/859313#M339521</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;when I convert sas dataset to csv one file looks like this&lt;/P&gt;
&lt;P&gt;2.0223322E12&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how can I transform its format before converting to csv so that it looks like a normal decimal?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You don't say where you are looking at this. If, as I suspect, you are examining the CSV file with spreadsheet software try making the column width wider. One common behavior is to attempt to display something that consists of many digits in the allowed space. So the software displays the value as scientific notation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or open the CSV in a TEXT editor to confirm the value was not exported by SAS as exponential. At which point make sure that the format SAS has for the variable will display properly. If your values actually have more than 14 digits you likely need to consider if it should be numeric at all as you bumping up against the storage precision of numeric values.&lt;/P&gt;
&lt;P&gt;Which raises question, exactly what does the value represent? If you are not doing arithmetic with it, like an account number or other identifier, then it should be stored as character.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 05:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-notation-while-exporting-to-csv/m-p/859313#M339521</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-02-17T05:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: decimal</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scientific-notation-while-exporting-to-csv/m-p/859327#M339524</link>
      <description>&lt;P&gt;What method are you using for the export?&lt;/P&gt;
&lt;P&gt;If you specify a format with an explicit length for that variable it might help, e.g., "14."&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 08:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scientific-notation-while-exporting-to-csv/m-p/859327#M339524</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-02-17T08:44:33Z</dc:date>
    </item>
  </channel>
</rss>

