<?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 ODS Proc Print to Excel with 0% in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Print-to-Excel-with-0/m-p/666847#M24243</link>
    <description>&lt;P&gt;I am trying to do a proc print (via ODS to Excel) with 0% as the value.&amp;nbsp; When the value pushes to Excel it just shows as % with no zero.&amp;nbsp; Is there a format or force function that I can use to force that % to show as 0%?&amp;nbsp; I have tried these combos:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc print Data=Garysdata;&lt;/P&gt;&lt;P&gt;var percentage ; /* this is where my table already has the value formatted as a percent */&lt;/P&gt;&lt;P&gt;var percentage / style ={tagarttr=format:0.0%} ;&amp;nbsp; /*this seems to have no additional affect */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance for any ideas.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jul 2020 15:31:17 GMT</pubDate>
    <dc:creator>Lost_Gary</dc:creator>
    <dc:date>2020-07-03T15:31:17Z</dc:date>
    <item>
      <title>ODS Proc Print to Excel with 0%</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Print-to-Excel-with-0/m-p/666847#M24243</link>
      <description>&lt;P&gt;I am trying to do a proc print (via ODS to Excel) with 0% as the value.&amp;nbsp; When the value pushes to Excel it just shows as % with no zero.&amp;nbsp; Is there a format or force function that I can use to force that % to show as 0%?&amp;nbsp; I have tried these combos:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc print Data=Garysdata;&lt;/P&gt;&lt;P&gt;var percentage ; /* this is where my table already has the value formatted as a percent */&lt;/P&gt;&lt;P&gt;var percentage / style ={tagarttr=format:0.0%} ;&amp;nbsp; /*this seems to have no additional affect */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance for any ideas.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 15:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Print-to-Excel-with-0/m-p/666847#M24243</guid>
      <dc:creator>Lost_Gary</dc:creator>
      <dc:date>2020-07-03T15:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Proc Print to Excel with 0%</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Print-to-Excel-with-0/m-p/666855#M24245</link>
      <description>&lt;P&gt;try a custom format?&amp;nbsp; if that does not work, convert the number into text with a % suffix first&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
 picture pct low - high= '009.9 %';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Jul 2020 15:53:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Print-to-Excel-with-0/m-p/666855#M24245</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-07-03T15:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Proc Print to Excel with 0%</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Print-to-Excel-with-0/m-p/666873#M24247</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I see some problems with your TAGATTR attribute (wrong spelling, attribute value not quoted). This works for me:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1593800443366.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46894i9C0E0A1D90EFA983/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1593800443366.png" alt="Cynthia_sas_0-1593800443366.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Plus, you did not say what destination you were using. I used ODS EXCEL, but you might have used ODS TAGSETS.EXCELXP, ODS CSV or even ODS HTML all of which might or might not use your TAGATTR value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect your TAGATTR didn't work because you didn't specify it correctly, if you posted exactly what you submitted. The attribute is &lt;STRONG&gt;TAGATTR&lt;/STRONG&gt;, not TAGA&lt;FONT color="#FF00FF"&gt;&lt;U&gt;&lt;STRONG&gt;R&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;TTR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, ODS EXCEL respected my SAS format, without needing TAGATTR at all. However, that is not true of other destinations, which is another reason why seeing all your code would have been useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My data was not multiplied by 100 because I know that both PERCENT9.2 and my TAGATTR will multiply by 100.&amp;nbsp; If your number is already a percent, or you've already multiplied by 100, then you need to use a different technique, as shown below:&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="Cynthia_sas_1-1593802093266.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/46896i973B1A551D6858E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1593802093266.png" alt="Cynthia_sas_1-1593802093266.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this points you to a solution with your data and your destination.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 18:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Print-to-Excel-with-0/m-p/666873#M24247</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-07-03T18:49:56Z</dc:date>
    </item>
  </channel>
</rss>

