<?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: Help with Where/Case in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-Where-Case/m-p/636346#M35758</link>
    <description>&lt;P&gt;Hi,]&lt;/P&gt;&lt;P&gt;How Can I apply here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE TESTE AS&lt;BR /&gt;SELECT DISTINCT T1.*&lt;BR /&gt;FROM TESTE_2 T1&lt;/P&gt;&lt;P&gt;INNER JOIN TESTE_3 T2 ON T1.NAME = T2.NAME&lt;BR /&gt;INNER JOIN TESTE_4 T3 ON T1.NAME = T3.NAME&lt;BR /&gt;LEFT JOIN TESTE_5 t4 ON T1.NAME = T4.NAME&lt;BR /&gt;LEFT JOIN TESTE_6 T5 ON T1.NAME = T5.NAME&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;T3.NAME IS MISSING AND&lt;BR /&gt;T4.NAME IS MISSING AND&lt;BR /&gt;T5.NAME IS MISSING&lt;BR /&gt;&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is my sample, So I need to count the cases for each filter:&lt;/P&gt;&lt;P&gt;Apply T3.NAME IS MISSING (count how many cases out for this filter) then apply the second (count again)....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It helps?&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 31 Mar 2020 19:51:53 GMT</pubDate>
    <dc:creator>antoniodneto</dc:creator>
    <dc:date>2020-03-31T19:51:53Z</dc:date>
    <item>
      <title>Help with Where/Case</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-Where-Case/m-p/636308#M35755</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have one table with many where clauses. I need to count a number of cases for each where clause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;apply filter 1 how many cases was filtered, then I apply filter 2 and count the cases again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you guys!!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 17:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-Where-Case/m-p/636308#M35755</guid>
      <dc:creator>antoniodneto</dc:creator>
      <dc:date>2020-03-31T17:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Where/Case</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-Where-Case/m-p/636345#M35757</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro count_rows(filter = );
proc sql;
  select count(*) as row_count
  from MyTable
  where &amp;amp;filter;
quit;
%mend;

%count_rows(filter = %str(&amp;lt;Myfilter1&amp;gt;));
%count_rows(filter = %str(&amp;lt;Myfilter2&amp;gt;));



&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Mar 2020 19:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-Where-Case/m-p/636345#M35757</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-03-31T19:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Where/Case</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-Where-Case/m-p/636346#M35758</link>
      <description>&lt;P&gt;Hi,]&lt;/P&gt;&lt;P&gt;How Can I apply here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE TESTE AS&lt;BR /&gt;SELECT DISTINCT T1.*&lt;BR /&gt;FROM TESTE_2 T1&lt;/P&gt;&lt;P&gt;INNER JOIN TESTE_3 T2 ON T1.NAME = T2.NAME&lt;BR /&gt;INNER JOIN TESTE_4 T3 ON T1.NAME = T3.NAME&lt;BR /&gt;LEFT JOIN TESTE_5 t4 ON T1.NAME = T4.NAME&lt;BR /&gt;LEFT JOIN TESTE_6 T5 ON T1.NAME = T5.NAME&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;T3.NAME IS MISSING AND&lt;BR /&gt;T4.NAME IS MISSING AND&lt;BR /&gt;T5.NAME IS MISSING&lt;BR /&gt;&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is my sample, So I need to count the cases for each filter:&lt;/P&gt;&lt;P&gt;Apply T3.NAME IS MISSING (count how many cases out for this filter) then apply the second (count again)....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It helps?&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Mar 2020 19:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-with-Where-Case/m-p/636346#M35758</guid>
      <dc:creator>antoniodneto</dc:creator>
      <dc:date>2020-03-31T19:51:53Z</dc:date>
    </item>
  </channel>
</rss>

