<?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 percentage but not % format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57861#M16143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Art, I'll give it a try..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Feb 2012 05:11:29 GMT</pubDate>
    <dc:creator>podarum</dc:creator>
    <dc:date>2012-02-18T05:11:29Z</dc:date>
    <item>
      <title>percentage but not % format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57858#M16140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; I'm calculating percentage in proc tabulate, but I need it to show up not in % (not multiplied by 100)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;SPAN style="color: #333333;"&gt;TABLE&lt;/SPAN&gt; Transaction_Type*((AVM_Vendor_1*CI1_T)),N pctn&amp;lt;CI1_T all&amp;gt; /&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;rts&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;35&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;﻿How can I see pctn, in decimal format? eg. 0.35 &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt;Thanks &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 20:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57858#M16140</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-02-17T20:26:33Z</dc:date>
    </item>
    <item>
      <title>percentage but not % format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57859#M16141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/kb/36/495.html"&gt;http://support.sas.com/kb/36/495.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search proc tabulate percent on support.sas.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 20:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57859#M16141</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-02-17T20:54:00Z</dc:date>
    </item>
    <item>
      <title>percentage but not % format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57860#M16142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can only think of one possibility (of course, there could easily be more).&amp;nbsp; You could always just create a format to cover all possibilities.&amp;nbsp; e.g. (I don't know your possibilities):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data fractions;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format label 4.3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain fmtname 'fraction' type 'n';&lt;/P&gt;&lt;P&gt;&amp;nbsp; do start=1 to 100 by .1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; label=start/100;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc format cntlin=fractions;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then specify that format in your proc tabulate statement, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background-color: #eef4f9;"&gt; pctn&amp;lt;CI1_T all&amp;gt;*f=fraction.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background-color: #eef4f9;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 23:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57860#M16142</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-17T23:58:21Z</dc:date>
    </item>
    <item>
      <title>percentage but not % format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57861#M16143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Art, I'll give it a try..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2012 05:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57861#M16143</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-02-18T05:11:29Z</dc:date>
    </item>
    <item>
      <title>percentage but not % format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57862#M16144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Art,&amp;nbsp; I tried running this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data fractions;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format label 4.3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain fmtname 'fraction' type 'n';&lt;/P&gt;&lt;P&gt;&amp;nbsp; do start=1 to 100 by .1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; label=start/100;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc format cntlin=fractions;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background-color: #eef4f9;"&gt;pctn&amp;lt;CI1_T all&amp;gt;*f=fraction.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background-color: #eef4f9;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background-color: #eef4f9;"&gt;But got the same results..no errors though, but not divided by 100&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 03:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57862#M16144</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-02-19T03:17:16Z</dc:date>
    </item>
    <item>
      <title>percentage but not % format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57863#M16145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You never indicated what your actual number range was and the number of decimal places.&amp;nbsp; My example code wouldonly cover whole numbers ranging between 1 and 100 and all possibly 10ths between those numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your range goes from 0 to 100, each with the possibility of also including a fraction less than or greater than .1, then you would have to modify the code by adding the creation of an end variable and start the loop at 0.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;data fractions;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&amp;nbsp; format label 4.3;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&amp;nbsp; retain fmtname 'fraction' type 'n';&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&amp;nbsp; do start=0 to 100 by .1;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end=start+0.0999999999;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; label=start/100;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;run;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;proc format cntlin=fractions;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if that works. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 05:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57863#M16145</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-19T05:41:56Z</dc:date>
    </item>
    <item>
      <title>percentage but not % format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57864#M16146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Works perfectly... once again thanks Art..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 05:49:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/percentage-but-not-format/m-p/57864#M16146</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2012-02-19T05:49:15Z</dc:date>
    </item>
  </channel>
</rss>

