<?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 numeric to % in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to/m-p/165349#M300511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is the current output, at the moment im getting the numeric field but I have added a column to the right to show the %. I need to repance the numeric number (second column)and replace with the percentage (third column).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Volume (#)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16,018&amp;nbsp; 24%&lt;/P&gt;&lt;P&gt;R&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16,669&amp;nbsp; 25%&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17,094&amp;nbsp; 26%&lt;/P&gt;&lt;P&gt;R&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16,206&amp;nbsp; 25%&lt;/P&gt;&lt;P&gt;total&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 65,987&amp;nbsp; 100%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2014 15:07:52 GMT</pubDate>
    <dc:creator>anonymous_user</dc:creator>
    <dc:date>2014-08-18T15:07:52Z</dc:date>
    <item>
      <title>Convert numeric to %</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to/m-p/165344#M300506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how I can convert my count and balance into a percentage?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt; create table work.kptoverall_&amp;amp;A1. as&lt;BR /&gt; select distinct month_date, &lt;BR /&gt; count(*) as count,&lt;BR /&gt; sum(balance_outstanding) as balance,&lt;BR /&gt; avg(balance_outstanding) as average_balance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from gbasel.basel&amp;amp;A2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where optimum_platform = 'Optimum'&lt;BR /&gt; and overall_multiplier &amp;gt;= 3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Overall_lit_stage_code not in ('L4','L5','L6')&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;group by month_date;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 10:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to/m-p/165344#M300506</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2014-08-18T10:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric to %</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to/m-p/165345#M300507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean to put the result into a percentage format e.g.&lt;/P&gt;&lt;P&gt;count(*) as count format=percent7.1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do you mean how to calculate a percentage?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 12:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to/m-p/165345#M300507</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-08-18T12:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric to %</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to/m-p/165346#M300508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If all you need is a report showing the %, PROC TABULATE does that automatically without having to change the data.&amp;nbsp; If you actually need a data set holding the %, the answer will be very different.&amp;nbsp; If you are determined to create a data set, you will need to create grand totals to use as denominators in your % calculations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 12:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to/m-p/165346#M300508</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-08-18T12:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric to %</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to/m-p/165347#M300509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i want the result in a percent rathr than a count or balance. RW9, i have tried to add the percent format as suggested but I get an error message - Tables with 0 columns are not supported by this object. Any ideas please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 13:59:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to/m-p/165347#M300509</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2014-08-18T13:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric to %</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to/m-p/165348#M300510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like your not getting data from the query.&amp;nbsp; Can I check what you mean however, can't really tell what you want from the text as its still vague between using a calculation to achieve a percent, or just adding % symbol?&amp;nbsp; Maybe post some test data and required output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 14:17:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to/m-p/165348#M300510</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-08-18T14:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numeric to %</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to/m-p/165349#M300511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is the current output, at the moment im getting the numeric field but I have added a column to the right to show the %. I need to repance the numeric number (second column)and replace with the percentage (third column).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Volume (#)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16,018&amp;nbsp; 24%&lt;/P&gt;&lt;P&gt;R&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16,669&amp;nbsp; 25%&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17,094&amp;nbsp; 26%&lt;/P&gt;&lt;P&gt;R&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16,206&amp;nbsp; 25%&lt;/P&gt;&lt;P&gt;total&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 65,987&amp;nbsp; 100%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 15:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-numeric-to/m-p/165349#M300511</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2014-08-18T15:07:52Z</dc:date>
    </item>
  </channel>
</rss>

