<?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: Format, thousand seperator proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/235041#M14678</link>
    <description>Hi,&lt;BR /&gt;Indeed, you are right. It is the MS Excel export that messes things up.&lt;BR /&gt;In SAS EG (Results tab) I can see the correct numbers 2.560 but in MS Excel it becomes 2,56 &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;</description>
    <pubDate>Tue, 17 Nov 2015 15:37:07 GMT</pubDate>
    <dc:creator>metallon</dc:creator>
    <dc:date>2015-11-17T15:37:07Z</dc:date>
    <item>
      <title>Format, thousand seperator proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/234879#M14674</link>
      <description>&lt;P&gt;Hello SAS Experts,&lt;/P&gt;
&lt;P&gt;I have been looking through many tutorials and whitepages but how to get a number without decimal points to show a thousand seperator I have not figured out so far.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example 2346 should look like 2.456 (dot seperated)&lt;/P&gt;
&lt;P&gt;31543 should look like 31.543&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DEFINE EB_P / 'B' format=7.2;&lt;BR /&gt;DEFINE SB_N / 'N' format=nlnum20.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but it did not help.&lt;/P&gt;
&lt;P&gt;Can someone point me in the right direction?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 15:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/234879#M14674</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-11-16T15:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Format, thousand seperator proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/234881#M14675</link>
      <description>&lt;P&gt;Use the COMMAX format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/ds2ref/68052/HTML/default/viewer.htm#n0mxv8qaydylmxn16vpt9nlgw1dp.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/ds2ref/68052/HTML/default/viewer.htm#n0mxv8qaydylmxn16vpt9nlgw1dp.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 16:22:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/234881#M14675</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-11-16T16:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Format, thousand seperator proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/234997#M14676</link>
      <description>&lt;P&gt;Hi PaigeMiller,&lt;/P&gt;
&lt;P&gt;Thanks for your hint!&lt;/P&gt;
&lt;P&gt;That was a great help.&lt;/P&gt;
&lt;P&gt;I have to admit, there are some column which I have where there is no decimal number(s).&lt;/P&gt;
&lt;P&gt;The numbers are just whole numbers like 2343 or 56992. Which format do I appl&lt;/P&gt;
&lt;P&gt;to "just" create a thousand seperator? I tried commax10. but that moved the decimal seperator and did not eliminate it.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 13:07:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/234997#M14676</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-11-17T13:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Format, thousand seperator proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/235023#M14677</link>
      <description>&lt;P&gt;The NLNUM format honors your national language setting. The COMMAX should just do the reverse of the COMMA format. &amp;nbsp;You can test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  length value 8 format $32 display $20 ;
  do value=2346, 31543 ;
    do format='COMMA20.','NLNUM20.','COMMAX20.';
      display = putn(value,format);
      put value format display ;
    end;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;2346 COMMA20. 2,346
2346 NLNUM20. 2,346
2346 COMMAX20. 2.346
31543 COMMA20. 31,543
31543 NLNUM20. 31,543
31543 COMMAX20. 31.543&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How are you viewing the results? &amp;nbsp;If you wrote it to an EXCEL file then perhaps Excel has changed the format, or attached it's own default format to the numeric values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 14:40:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/235023#M14677</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-11-17T14:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Format, thousand seperator proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/235041#M14678</link>
      <description>Hi,&lt;BR /&gt;Indeed, you are right. It is the MS Excel export that messes things up.&lt;BR /&gt;In SAS EG (Results tab) I can see the correct numbers 2.560 but in MS Excel it becomes 2,56 &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;</description>
      <pubDate>Tue, 17 Nov 2015 15:37:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/235041#M14678</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-11-17T15:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Format, thousand seperator proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/236644#M14734</link>
      <description>Is there a way to influence the format in MS Excel?</description>
      <pubDate>Thu, 26 Nov 2015 17:49:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/236644#M14734</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-11-26T17:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Format, thousand seperator proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/236645#M14735</link>
      <description>Hi:&lt;BR /&gt;  You do not show all your code. The answer depends on HOW you are getting your output into Excel. With PROC EXPORT or the LIBNAME engine, you do not have much control over the format in Excel. However, with ODS -- such as ODS MSOFFICE2K or ODS TAGSETS.EXCELXP, then you can influence the format that SAS sends to Excel by actually sending an Excel format from SAS to Excel via a style attribute override. See this paper:&lt;BR /&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings11/266-2011.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings11/266-2011.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 26 Nov 2015 17:56:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/236645#M14735</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-11-26T17:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Format, thousand seperator proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/236713#M14738</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply. I read through the paper.&lt;BR /&gt;The whole code is a massive chunk so I dont bother you with that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;I am using ODS Tagset /XML and applied&lt;BR /&gt;&lt;BR /&gt;DEFINE KAAN / 'N' style(column)={tagattr='format:#.##0'};&lt;BR /&gt;&lt;BR /&gt;I picked the format using MS excel and it formatted a number like&lt;BR /&gt;2000 as 2.000, 500 as 500 and 23444 as 23.444.&lt;BR /&gt;All great but when I generate the xml/excel with SAS the number turns out&lt;BR /&gt;to be 2000,0 and 500,0  &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Nov 2015 09:19:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/236713#M14738</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-11-27T09:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Format, thousand seperator proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/236721#M14742</link>
      <description>got it DEFINE KAA_N / 'N' style(column)={tagattr='format:#,##0'};</description>
      <pubDate>Fri, 27 Nov 2015 11:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Format-thousand-seperator-proc-report/m-p/236721#M14742</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-11-27T11:20:01Z</dc:date>
    </item>
  </channel>
</rss>

