<?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: Convert Decimal to Percent % in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72385#M20973</link>
    <description>use the format percent12.2 or percent15.&lt;BR /&gt;
&lt;BR /&gt;
ex:&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table a as select * a/b as c format percent12.2 from &lt;TABLE&gt;;&lt;BR /&gt;
quit;&lt;/TABLE&gt;</description>
    <pubDate>Thu, 16 Sep 2010 09:00:20 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-09-16T09:00:20Z</dc:date>
    <item>
      <title>Convert Decimal to Percent %</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72383#M20971</link>
      <description>How can i convert this decimal outcome to show percent %&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table test as&lt;BR /&gt;
select _NAME_,&lt;BR /&gt;
case&lt;BR /&gt;
when (Y__Service_Level)=(BR_PercentServiceLevel)then 0&lt;BR /&gt;
else Y__Service_Level - BR_PercentServiceLevel&lt;BR /&gt;
end as PercentServiceLevel&lt;BR /&gt;
from cscore.BRSmerge;&lt;BR /&gt;
quit;</description>
      <pubDate>Wed, 15 Sep 2010 16:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72383#M20971</guid>
      <dc:creator>fredbell</dc:creator>
      <dc:date>2010-09-15T16:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Decimal to Percent %</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72384#M20972</link>
      <description>Have you tried using the PERCENT format?</description>
      <pubDate>Thu, 16 Sep 2010 03:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72384#M20972</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-09-16T03:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Decimal to Percent %</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72385#M20973</link>
      <description>use the format percent12.2 or percent15.&lt;BR /&gt;
&lt;BR /&gt;
ex:&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table a as select * a/b as c format percent12.2 from &lt;TABLE&gt;;&lt;BR /&gt;
quit;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 16 Sep 2010 09:00:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72385#M20973</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-09-16T09:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Decimal to Percent %</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72386#M20974</link>
      <description>Thanks user4sas this was helpful, thanks for the example.&lt;BR /&gt;
&lt;BR /&gt;
Fred</description>
      <pubDate>Thu, 16 Sep 2010 13:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72386#M20974</guid>
      <dc:creator>fredbell</dc:creator>
      <dc:date>2010-09-16T13:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Decimal to Percent %</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72387#M20975</link>
      <description>Hello again &lt;BR /&gt;
&lt;BR /&gt;
I'm looking for some doc. to help explain how the format percent12.2 works&lt;BR /&gt;
&lt;BR /&gt;
How do i figure out to apply 12.2 or 8.1 or what?&lt;BR /&gt;
&lt;BR /&gt;
If you can lead me to some information that would be great, i've looked online but can't find anything.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.&lt;BR /&gt;
&lt;BR /&gt;
Fred</description>
      <pubDate>Fri, 17 Sep 2010 11:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72387#M20975</guid>
      <dc:creator>fredbell</dc:creator>
      <dc:date>2010-09-17T11:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Decimal to Percent %</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72388#M20976</link>
      <description>Fred,&lt;BR /&gt;
&lt;BR /&gt;
The documentation can be found at: &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a000205182.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a000205182.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
or, if that wraps, in short form: &lt;A href="http://xrl.us/bhznnr" target="_blank"&gt;http://xrl.us/bhznnr&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
In short, the first number indicates the width you want (including after the decimal), while the second number indicates the number of decimal places wanted.&lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
Art</description>
      <pubDate>Fri, 17 Sep 2010 23:05:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72388#M20976</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2010-09-17T23:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Decimal to Percent %</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72389#M20977</link>
      <description>And, if you are using the PERCENT format, be sure to make the overall width "wide" enough -- usually 8.1 works for me if I have 1 decimal place:&lt;BR /&gt;
&lt;B&gt; From the Doc:&lt;BR /&gt;
Tip: The width of the output field must account for the percent sign (% ) and parentheses for negative numbers, whether the number is negative or positive.&lt;BR /&gt;
&lt;/B&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Sat, 18 Sep 2010 02:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72389#M20977</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-09-18T02:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Decimal to Percent %</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72390#M20978</link>
      <description>Thanks everyone</description>
      <pubDate>Fri, 24 Sep 2010 10:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-Decimal-to-Percent/m-p/72390#M20978</guid>
      <dc:creator>fredbell</dc:creator>
      <dc:date>2010-09-24T10:49:51Z</dc:date>
    </item>
  </channel>
</rss>

