<?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: Error in count function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-in-count-function/m-p/377517#M90655</link>
    <description>&lt;P&gt;Post your log. I'm not seeing what would cause that specific error.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 18:54:32 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-07-19T18:54:32Z</dc:date>
    <item>
      <title>Error in count function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-count-function/m-p/377510#M90649</link>
      <description>&lt;P&gt;Getting error like&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Summary functions are restricted to the SELECT and HAVING clauses only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select &amp;nbsp;acc,&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(amt) as tot_amt,&lt;/P&gt;&lt;P&gt;count(id1) as count1,&lt;BR /&gt;count(id2) as count2,&lt;BR /&gt;count(id3) as count3,&lt;BR /&gt;count(id4) as count4,&lt;BR /&gt;count(id5) as count5,&lt;BR /&gt;sum(calculated count1,calculated count2,calculated count3,calculated count4,calculated count5) as tot_id&lt;/P&gt;&lt;P&gt;from table&lt;/P&gt;&lt;P&gt;group by acc&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each acct have 5 ids..some are blank.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 18:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-count-function/m-p/377510#M90649</guid>
      <dc:creator>Kalai2008</dc:creator>
      <dc:date>2017-07-19T18:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error in count function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-count-function/m-p/377517#M90655</link>
      <description>&lt;P&gt;Post your log. I'm not seeing what would cause that specific error.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 18:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-count-function/m-p/377517#M90655</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-19T18:54:32Z</dc:date>
    </item>
  </channel>
</rss>

