<?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: How to Divide two rows? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Divide-two-rows/m-p/130712#M35567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Final result I want to get is 276/(276+543) for NBUS, 264/(264+1099) for Season.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Mar 2013 14:20:33 GMT</pubDate>
    <dc:creator>Phoenix8527</dc:creator>
    <dc:date>2013-03-08T14:20:33Z</dc:date>
    <item>
      <title>How to Divide two rows?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Divide-two-rows/m-p/130710#M35565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my dataset. I want to calculate Percentage as Y/(Y+N) using Count number for both NBUS and Season. Anyone know how to get the results?&amp;nbsp; Thanks a lot&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;Status&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="64"&gt;Tenure&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="64"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;NBUS&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-left: medium none; border-top: medium none;"&gt;543&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Season&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-left: medium none; border-top: medium none;"&gt;1099&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;NBUS&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-left: medium none; border-top: medium none;"&gt;276&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;"&gt;Season&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-left: medium none; border-top: medium none;"&gt;264&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 21:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-Divide-two-rows/m-p/130710#M35565</guid>
      <dc:creator>Phoenix8527</dc:creator>
      <dc:date>2013-03-07T21:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Divide two rows?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Divide-two-rows/m-p/130711#M35566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input Status $ Tenure $ Count;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;N NBUS 543&lt;/P&gt;&lt;P&gt;N Season 1099&lt;/P&gt;&lt;P&gt;Y NBUS 276&lt;/P&gt;&lt;P&gt;Y Season 264&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select status, tenure, count, count/sum(count) as Pct&lt;/P&gt;&lt;P&gt;from have;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 22:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-Divide-two-rows/m-p/130711#M35566</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2013-03-07T22:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Divide two rows?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Divide-two-rows/m-p/130712#M35567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Final result I want to get is 276/(276+543) for NBUS, 264/(264+1099) for Season.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 14:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-Divide-two-rows/m-p/130712#M35567</guid>
      <dc:creator>Phoenix8527</dc:creator>
      <dc:date>2013-03-08T14:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Divide two rows?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Divide-two-rows/m-p/130713#M35568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select status, tenure, count, count/sum(count) as Pct&lt;/P&gt;&lt;P&gt;from have&lt;/P&gt;&lt;P&gt;group by tenure;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 14:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-Divide-two-rows/m-p/130713#M35568</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2013-03-08T14:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Divide two rows?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Divide-two-rows/m-p/130714#M35569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table want1 as select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status, tenure, count, sum(count) as sum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by tenure;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table want2 as select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status, tenure, count/sum*100 as percent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from want1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where status='Y';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 14:38:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-Divide-two-rows/m-p/130714#M35569</guid>
      <dc:creator>VD</dc:creator>
      <dc:date>2013-03-08T14:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Divide two rows?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Divide-two-rows/m-p/130715#M35570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Times 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;title&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"276/(276+543)=%sysevalF(276/(276+543)) for NBUS, 264/(264+1099)=%sysevalF(264/(264+1099)) for Season"&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;freq&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=have;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;tables&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; status*tenure / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;norow&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;nopercent&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;weight&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; count;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 14:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-Divide-two-rows/m-p/130715#M35570</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-03-08T14:45:34Z</dc:date>
    </item>
  </channel>
</rss>

