<?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: Formatting Percentages in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Percentages/m-p/238405#M14851</link>
    <description>&lt;P&gt;Create a PICTURE format like this:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;format&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp; picture&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; pcent low-high=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'009.99%'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; PercentUsed = 99.34567;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; x = put(PercentUsed, pcent.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;put x=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;x=99.34%&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;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2015 23:11:43 GMT</pubDate>
    <dc:creator>JerryLeBreton</dc:creator>
    <dc:date>2015-12-08T23:11:43Z</dc:date>
    <item>
      <title>Formatting Percentages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Percentages/m-p/238403#M14849</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am writting constructing a table using proc report. One of the columns being displayed is a list of percentages&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PercentUsed&lt;/P&gt;
&lt;P&gt;99.267561&lt;/P&gt;
&lt;P&gt;0.2447182&lt;/P&gt;
&lt;P&gt;0.4967894&lt;/P&gt;
&lt;P&gt;76.229856&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I format this colum so that it appears as what is shown below, within the proc report table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PercentUsed&lt;/P&gt;
&lt;P&gt;99.26%&lt;/P&gt;
&lt;P&gt;0.24%&lt;/P&gt;
&lt;P&gt;0.49%&lt;/P&gt;
&lt;P&gt;76.2%&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use the format=percent it times eveything by 100. So I get 9926 rather then 99.26&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 22:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Percentages/m-p/238403#M14849</guid>
      <dc:creator>BStats</dc:creator>
      <dc:date>2015-12-08T22:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Percentages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Percentages/m-p/238404#M14850</link>
      <description>You need to create a custom picture format:&lt;BR /&gt;&lt;BR /&gt;proc format;                           &lt;BR /&gt;   picture mypct low-high='000,009%';   &lt;BR /&gt;run; &lt;BR /&gt;</description>
      <pubDate>Tue, 08 Dec 2015 23:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Percentages/m-p/238404#M14850</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-08T23:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Percentages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Percentages/m-p/238405#M14851</link>
      <description>&lt;P&gt;Create a PICTURE format like this:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;format&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp; picture&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; pcent low-high=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'009.99%'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; PercentUsed = 99.34567;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; x = put(PercentUsed, pcent.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;put x=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;x=99.34%&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;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 23:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Percentages/m-p/238405#M14851</guid>
      <dc:creator>JerryLeBreton</dc:creator>
      <dc:date>2015-12-08T23:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Percentages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Percentages/m-p/238408#M14853</link>
      <description>&lt;P&gt;This is turning my 0.24567 into 0%. I need it to be 0.24%&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 23:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Percentages/m-p/238408#M14853</guid>
      <dc:creator>BStats</dc:creator>
      <dc:date>2015-12-08T23:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting Percentages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Percentages/m-p/238409#M14854</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 23:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-Percentages/m-p/238409#M14854</guid>
      <dc:creator>BStats</dc:creator>
      <dc:date>2015-12-08T23:17:31Z</dc:date>
    </item>
  </channel>
</rss>

