<?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: proc export Excel decimal issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-decimal-issue/m-p/909228#M358658</link>
    <description>&lt;P&gt;Maxim 2: Read the Log.&lt;/P&gt;
&lt;P&gt;It will alert you to the fact that you used an invalid format specification. The number to the left of the dot must accommodate&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the number to the right&lt;/LI&gt;
&lt;LI&gt;the decimal dot&lt;/LI&gt;
&lt;LI&gt;an eventual sign&lt;/LI&gt;
&lt;LI&gt;at least one digit to z'the left of the decimal dot, but more if your data needs it&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I suggest to use 20.10 as a start and see what it does.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2023 08:47:23 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-12-21T08:47:23Z</dc:date>
    <item>
      <title>proc export Excel decimal issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-decimal-issue/m-p/909212#M358651</link>
      <description>Hello!&lt;BR /&gt;First of all, I'm sorry for my poor English.&lt;BR /&gt;The column [amt] is 10 decimals,&lt;BR /&gt;when exported it comes to 7 decimals.&lt;BR /&gt;In EG, 10 decimals.&lt;BR /&gt;In Client, 7 decimals.&lt;BR /&gt;Do I have to change the setting?&lt;BR /&gt;I think there is a way with ods excel, so I tried it, but it says there is no module.&lt;BR /&gt;Please let me know the syntax that I can do with proc export.&lt;BR /&gt;&lt;BR /&gt;- sum(amt) / 100000000 as amt format=comma10.10&lt;BR /&gt;- proc export data=out.prod_sales&lt;BR /&gt;outfile = '/user/product/output'&lt;BR /&gt;dbms =xlsx&lt;BR /&gt;replace;&lt;BR /&gt;sheet=sales_amt;&lt;BR /&gt;results(below)&lt;BR /&gt;- EG : 1.5211661500&lt;BR /&gt;- Client : 1.5211662</description>
      <pubDate>Thu, 21 Dec 2023 06:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-decimal-issue/m-p/909212#M358651</guid>
      <dc:creator>Siwon</dc:creator>
      <dc:date>2023-12-21T06:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc export Excel decimal issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-decimal-issue/m-p/909221#M358656</link>
      <description>&lt;P&gt;This could be one of the fancy data &lt;EM&gt;optimizations&lt;/EM&gt; implemented in Excel itself.&lt;/P&gt;
&lt;P&gt;But: Are you sure, that you have applied the format comma10.10? If I try to do so, the log displays:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;The decimal specification of 10 must be less than the width specification of 10.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Changing the format to comma15.10 fixed the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 07:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-decimal-issue/m-p/909221#M358656</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2023-12-21T07:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc export Excel decimal issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-decimal-issue/m-p/909228#M358658</link>
      <description>&lt;P&gt;Maxim 2: Read the Log.&lt;/P&gt;
&lt;P&gt;It will alert you to the fact that you used an invalid format specification. The number to the left of the dot must accommodate&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the number to the right&lt;/LI&gt;
&lt;LI&gt;the decimal dot&lt;/LI&gt;
&lt;LI&gt;an eventual sign&lt;/LI&gt;
&lt;LI&gt;at least one digit to z'the left of the decimal dot, but more if your data needs it&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I suggest to use 20.10 as a start and see what it does.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 08:47:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-decimal-issue/m-p/909228#M358658</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-12-21T08:47:23Z</dc:date>
    </item>
  </channel>
</rss>

