<?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: Percentage display adding zeros in ODS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Percentage-display-adding-zeros-in-ODS/m-p/328526#M17833</link>
    <description>&lt;P&gt;PERCENT format is intended for values of 0 to 1 where 1=100%. So either divide your numbers by 100 or use a custom picture format to add a % at the end of any value.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2017 17:36:12 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-01-30T17:36:12Z</dc:date>
    <item>
      <title>Percentage display adding zeros in ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Percentage-display-adding-zeros-in-ODS/m-p/328505#M17832</link>
      <description>&lt;P&gt;data test (keep=pct);&lt;/P&gt;
&lt;P&gt;set test1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;sample output&lt;/P&gt;
&lt;P&gt;100&lt;/P&gt;
&lt;P&gt;50&lt;/P&gt;
&lt;P&gt;70&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In ODS i have this&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DEFINE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; pct /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DISPLAY&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(column)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'format:#0%'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;} &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"%Processed"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;My output looks like this&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%Processed&lt;BR /&gt;1000%&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;5000%&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;7000%&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I am getting the desired percent sign however I am getting two extra zeros.&amp;nbsp; How can I get rid of the extra zeroes&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 16:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Percentage-display-adding-zeros-in-ODS/m-p/328505#M17832</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2017-01-30T16:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage display adding zeros in ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Percentage-display-adding-zeros-in-ODS/m-p/328526#M17833</link>
      <description>&lt;P&gt;PERCENT format is intended for values of 0 to 1 where 1=100%. So either divide your numbers by 100 or use a custom picture format to add a % at the end of any value.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 17:36:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Percentage-display-adding-zeros-in-ODS/m-p/328526#M17833</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-30T17:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage display adding zeros in ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Percentage-display-adding-zeros-in-ODS/m-p/329439#M17860</link>
      <description>Hi:&lt;BR /&gt;  In addition, when you use a format such as you show in TAGATTR, Excel automatically does a multiply by 100...please see this paper: &lt;A href="https://support.sas.com/resources/papers/proceedings11/266-2011.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings11/266-2011.pdf&lt;/A&gt; where data on page 16 is shown as 0.099 and 0.082 and with a tagattr similar to yours, Excel displays the number as though it has been multiplied by 100.&lt;BR /&gt;&lt;BR /&gt;--- Including a percent sign in TAGATTR format without a backslash will cause Excel to multiply the number by 100. Example:&lt;BR /&gt;.1234 internal value with TAGATTR of 0.0#% will be displayed as 12.34%&lt;BR /&gt; &lt;BR /&gt;---Including a percent sign WITH a backslash in the format will display the percent sign, but will NOT multiply the number by 100. Example:&lt;BR /&gt;.5678 internal value with TAGATTR of 0.00\% will be displayed as  0.57%&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 02 Feb 2017 14:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Percentage-display-adding-zeros-in-ODS/m-p/329439#M17860</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-02-02T14:39:19Z</dc:date>
    </item>
  </channel>
</rss>

