<?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: count no of cases in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/count-no-of-cases/m-p/466321#M118976</link>
    <description>&lt;P&gt;In SQL, this would be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select count(*) from ...... where status = "ct";&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 31 May 2018 05:50:49 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-05-31T05:50:49Z</dc:date>
    <item>
      <title>count no of cases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-no-of-cases/m-p/466311#M118973</link>
      <description>&lt;P&gt;Hi i want to count total number of cases in data set .&lt;/P&gt;&lt;P&gt;The data has variable status so want to count total no of cases based on the values of status.&lt;/P&gt;&lt;P&gt;filter should be where status=cr then the total count should be stored in new variable.&lt;/P&gt;&lt;P&gt;if status-ct then count of ct in new variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 05:22:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-no-of-cases/m-p/466311#M118973</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2018-05-31T05:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: count no of cases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-no-of-cases/m-p/466321#M118976</link>
      <description>&lt;P&gt;In SQL, this would be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select count(*) from ...... where status = "ct";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 May 2018 05:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-no-of-cases/m-p/466321#M118976</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-31T05:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: count no of cases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-no-of-cases/m-p/466335#M118979</link>
      <description>Thanks Kurt ,&lt;BR /&gt;any solution how can we implement it using the query builder.&lt;BR /&gt;and any data step</description>
      <pubDate>Thu, 31 May 2018 06:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-no-of-cases/m-p/466335#M118979</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2018-05-31T06:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: count no of cases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-no-of-cases/m-p/466338#M118981</link>
      <description>&lt;P&gt;In the query builder, select status and apply the count() summary function to it; on the second tab, add the where condition.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 07:06:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-no-of-cases/m-p/466338#M118981</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-31T07:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: count no of cases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-no-of-cases/m-p/466480#M119025</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's three questions in one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/106991"&gt;@anirudhs&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi i want to count total number of cases in data set .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use a summarization task&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/106991"&gt;@anirudhs&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data has variable status so want to count total no of cases based on the values of status.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Again, a Summary task will produce that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/106991"&gt;@anirudhs&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if status-ct then count of ct in new variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In a separate data set, how do you need that stored? You can use Query builder with a filter or you could save the results from the summary tasks into a dataset for use later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems like all your results could be handled with a summarization procedure.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 14:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-no-of-cases/m-p/466480#M119025</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-31T14:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: count no of cases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-no-of-cases/m-p/467297#M119283</link>
      <description>Hi Kurt,&lt;BR /&gt;i used the following sum(case when status=ct then 1 else 0) which gave me the the count of ct cases in the data set similarly i did it for the other case where i got the required o/p using the query builder and designed the automated process flow.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;Anirudh</description>
      <pubDate>Mon, 04 Jun 2018 04:53:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-no-of-cases/m-p/467297#M119283</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2018-06-04T04:53:43Z</dc:date>
    </item>
  </channel>
</rss>

