<?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 Sum of counts in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sum-of-counts/m-p/87464#M18707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following query will give counts of each country_cd.But how to get the total of all counts?&lt;/P&gt;&lt;P&gt; proc sql;&lt;/P&gt;&lt;P&gt; select count(*) from table a&lt;/P&gt;&lt;P&gt;&amp;nbsp; group by country_cd;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;if there are 10 country_cd we will get 10 counts for each country.But how to get grand total of all 10 counts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Dec 2012 05:12:45 GMT</pubDate>
    <dc:creator>SASPhile</dc:creator>
    <dc:date>2012-12-02T05:12:45Z</dc:date>
    <item>
      <title>Sum of counts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sum-of-counts/m-p/87464#M18707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following query will give counts of each country_cd.But how to get the total of all counts?&lt;/P&gt;&lt;P&gt; proc sql;&lt;/P&gt;&lt;P&gt; select count(*) from table a&lt;/P&gt;&lt;P&gt;&amp;nbsp; group by country_cd;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;if there are 10 country_cd we will get 10 counts for each country.But how to get grand total of all 10 counts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Dec 2012 05:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sum-of-counts/m-p/87464#M18707</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2012-12-02T05:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of counts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sum-of-counts/m-p/87465#M18708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get the the total counts by not using the GROUP BY clause:&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; select count(*) from table a;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Dec 2012 05:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sum-of-counts/m-p/87465#M18708</guid>
      <dc:creator>pobel</dc:creator>
      <dc:date>2012-12-02T05:27:33Z</dc:date>
    </item>
  </channel>
</rss>

