<?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: re: Counting Selection in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/re-Counting-Selection/m-p/134613#M260926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest way to count the number of positive fees in a datastep is the sum statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;countPos + (Fees &amp;gt; 0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;within a SQL query, you would use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Fees &amp;gt; 0) as countPos,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note The comparison (Fees &amp;gt; 0) has value 1 for positive fees and zero for nul or missing fees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Apr 2014 17:49:24 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2014-04-26T17:49:24Z</dc:date>
    <item>
      <title>re: Counting Selection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-Counting-Selection/m-p/134612#M260925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a dataset that has a variable with the name Fees which represents a changed in Fees that were paid. I would like to be able count the number of entries that are not zero ($0.00) and not empty cells using the Case When Statement. Is this even possible using the Case When Statement or is there a more efficient way to achieve this. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2014 16:58:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-Counting-Selection/m-p/134612#M260925</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2014-04-26T16:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: re: Counting Selection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-Counting-Selection/m-p/134613#M260926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest way to count the number of positive fees in a datastep is the sum statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;countPos + (Fees &amp;gt; 0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;within a SQL query, you would use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Fees &amp;gt; 0) as countPos,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note The comparison (Fees &amp;gt; 0) has value 1 for positive fees and zero for nul or missing fees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2014 17:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-Counting-Selection/m-p/134613#M260926</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-04-26T17:49:24Z</dc:date>
    </item>
  </channel>
</rss>

