<?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: ods tagsets.excelxp Help with comma formats on numbers in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263581#M51592</link>
    <description>&lt;P&gt;Looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var total / style={tagattr="format:###,###,###"};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2016 16:38:35 GMT</pubDate>
    <dc:creator>buechler66</dc:creator>
    <dc:date>2016-04-13T16:38:35Z</dc:date>
    <item>
      <title>ods tagsets.excelxp Help with comma formats on numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263516#M51576</link>
      <description>&lt;P&gt;I'm stuck trying to get commas on every 3rd digit of my numbers. Neither the Thousands_Separator option or the Format statement seem to have any affect on the formatting. &amp;nbsp;Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods tagsets.excelxp file="c:\users\ssbuechl\FinalData.xls" style=statistical options(embedded_titles='yes' orientation='landscape' gridlines='yes' THOUSANDS_SEPARATOR=',');
&lt;BR /&gt;proc print noobs data=FinalData;
format Rule_Order best6. 
       total comma10.
      _: comma10.
      null comma10.; 
var rule_order score_impacting rule_nm total _: null;
run;
ods tagsets.excelxp close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;RULE_ORDER	SCORE_IMPACTING	   RULE_NM      TOTAL	_04_11_2016	_04_09_2016	_04_08_2016	_04_07_2016	_04_06_2016	_04_05_2016
999.3	Y	TOTAL BIDS VOLUME SAMPLED	54504	17	        124	        143	        222	         493	        1092
337	N	PREP TYPE CODE MISMATCH	15588	4	90	        110	        184	        396	         908&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263516#M51576</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2016-04-13T14:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: ods tagsets.excelxp Help with comma formats on numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263519#M51578</link>
      <description>&lt;P&gt;Applying a SAS format makes no difference. &amp;nbsp;Excel is interpreting the XML that you create when it opens it - it is at that point of Excel parsing the XML that it decides what your data is and how to display it - it is a "feature" of Excel and one good reason not to use it for any purpose! &amp;nbsp;However if you have to then you have to add in Excel style references to the XML that is generated. &amp;nbsp;You do this by putting in style{} commands in your report/print - as you would to alter any output appearance. &amp;nbsp;Here is a link to several examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings10/031-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/031-2010.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And example:&lt;/P&gt;
&lt;PRE&gt;proc print data=buy;
 format datetime e8601dt.;
 var datetime / style(data)={tagattr='type:DateTime format:YYYY-MM-DD'};
 var date;
 var amount;
run;&lt;/PRE&gt;
&lt;P&gt;The tagattr statement tells the tagset to include that text in the XML. &amp;nbsp;Then when Excel reads the XML it sees a format statement it recoginses and formats the data appropriately.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263519#M51578</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-13T14:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: ods tagsets.excelxp Help with comma formats on numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263533#M51582</link>
      <description>&lt;P&gt;Here's an index to options for the Tagsets destination.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sas.com/events/cm/867226/ExcelXPPaperIndex.pdf" target="_blank"&gt;http://www.sas.com/events/cm/867226/ExcelXPPaperIndex.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll see the entry for Excel format:comma and then the corresponding papers and pages that have relevant examples.&lt;/P&gt;
&lt;P&gt;You could also search here, since it's an FAQ&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if you're on SAS 9.4 you can use ODS Excel instead of tagsets.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:37:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263533#M51582</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-13T14:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: ods tagsets.excelxp Help with comma formats on numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263534#M51583</link>
      <description>&lt;P&gt;Here's an index to options for the Tagsets destination.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sas.com/events/cm/867226/ExcelXPPaperIndex.pdf" target="_blank"&gt;http://www.sas.com/events/cm/867226/ExcelXPPaperIndex.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll see the entry for Excel format:comma and then the corresponding papers and pages that have relevant examples.&lt;/P&gt;
&lt;P&gt;You could also search here, since it's an FAQ&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if you're on SAS 9.4 you can use ODS Excel instead of tagsets.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:37:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263534#M51583</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-13T14:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: ods tagsets.excelxp Help with comma formats on numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263557#M51590</link>
      <description>&lt;P&gt;Weird, my output changed from a number to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;RULE_ORDER	   SCORE_IMPACTING	RULE_NM                               TOTAL
999.3                  Y                TOTAL BIDS VOLUME SAMPLED             co03a&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have the correct syntax for the Total variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;226  ods tagsets.excelxp file="c:\users\ssbuechl\FinalData.xml" style=statistical options(embedded_titles='yes'
226! orientation='landscape' gridlines='yes' THOUSANDS_SEPARATOR=',');
NOTE: Writing TAGSETS.EXCELXP Body file: c:\users\ssbuechl\FinalData.xml
NOTE: This is the Excel XP tagset (Compatible with SAS 9.1.3 and above, v1.122, 01/04/2011). Add options(doc='help') to the
ods statement for more information.
227  proc print noobs data=FinalData;
228  * format Rule_Order best6. total comma10. _: comma10. null comma10.;
229  var rule_order score_impacting rule_nm;
230  var total / style={tagattr='format:comma'};
231  var _: null;
232  run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Apr 2016 15:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263557#M51590</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2016-04-13T15:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: ods tagsets.excelxp Help with comma formats on numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263571#M51591</link>
      <description>&lt;P&gt;No you don't have the comma format properly specified. See how it was specified in an example. I'd have to look it up to tell you, so you might as well do that &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 16:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263571#M51591</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-13T16:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: ods tagsets.excelxp Help with comma formats on numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263581#M51592</link>
      <description>&lt;P&gt;Looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var total / style={tagattr="format:###,###,###"};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 16:38:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-tagsets-excelxp-Help-with-comma-formats-on-numbers/m-p/263581#M51592</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2016-04-13T16:38:35Z</dc:date>
    </item>
  </channel>
</rss>

