<?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: WHERE clause with exclusion in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-with-exclusion/m-p/312240#M67695</link>
    <description>&lt;P&gt;Yeah ..But mlogan&amp;nbsp;desired output has not included the 7th observation [&lt;STRONG&gt;7 M101 Eng 10]&amp;nbsp;&lt;/STRONG&gt;. I just added that note .&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2016 07:52:01 GMT</pubDate>
    <dc:creator>monikka1991</dc:creator>
    <dc:date>2016-11-17T07:52:01Z</dc:date>
    <item>
      <title>WHERE clause with exclusion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-with-exclusion/m-p/312191#M67672</link>
      <description>&lt;P&gt;I have the folowinf table, can someone tell me how do I get all score greater than or equals 17 (excluding Clurse_ID=Eng). I mean observations where Course_ID=Eng should not be in considered in this clause. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA Apple.have;
input Student_ID $ Course_ID $ Score;
cards; 
F103 Bio 18
F103 Math 15
F103 Eng 16
F103 Che 15
F103 Math 20
F103 Phy 17
M101 Eng 20
M101 Bio 20
M101 Eng 10
M101 Math 18
RUN;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;F103 Bio 18
F103 Eng 16
F103 Math 20
F103 Phy 17
M101 Eng 20
M101 Bio 20
M101 Math 18&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 03:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-with-exclusion/m-p/312191#M67672</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2016-11-17T03:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE clause with exclusion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-with-exclusion/m-p/312197#M67677</link>
      <description>&lt;P&gt;Add your conditions as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;DATA&lt;/SPAN&gt; Apple&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;have&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt; Student_ID &lt;SPAN class="token punctuation"&gt;$&lt;/SPAN&gt; Course_ID &lt;SPAN class="token punctuation"&gt;$&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;Score&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;&lt;STRONG&gt;if score ge 17 or course_id eq 'ENG';&lt;/STRONG&gt;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;cards&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;BR /&gt;&lt;/CODE&gt;.... your data ...&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Nov 2016 04:35:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-with-exclusion/m-p/312197#M67677</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-17T04:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE clause with exclusion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-with-exclusion/m-p/312211#M67682</link>
      <description>&lt;P&gt;&lt;BR /&gt;DATA WANT;&lt;BR /&gt;SET Apple.HAVE (WHERE =(Score &amp;gt;= 17 or Course_ID = 'Eng' ));&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;Result :&lt;/P&gt;&lt;P&gt;The observation 7 is also&amp;nbsp;included&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Obs Student_ID Course_ID Score&lt;/P&gt;&lt;P&gt;1 F103 Bio 18&lt;BR /&gt;&lt;STRONG&gt;2 F103 Eng 16&lt;/STRONG&gt;&lt;BR /&gt;3 F103 Math 20&lt;BR /&gt;4 F103 Phy 17&lt;BR /&gt;5 M101 Eng 20&lt;BR /&gt;6 M101 Bio 20&lt;BR /&gt;&lt;STRONG&gt;7 M101 Eng 10&lt;/STRONG&gt;&lt;BR /&gt;8 M101 Math 18&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 05:22:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-with-exclusion/m-p/312211#M67682</guid>
      <dc:creator>monikka1991</dc:creator>
      <dc:date>2016-11-17T05:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE clause with exclusion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-with-exclusion/m-p/312228#M67688</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@monikka1991_gmail_com wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result :&lt;/P&gt;
&lt;P&gt;The observation 7 is also&amp;nbsp;included&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sorry, what are you trying to say here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obs 2 &amp;amp; 7 would be excluded otherwise, but they're included because Course_ID="ENG"&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 06:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-with-exclusion/m-p/312228#M67688</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-17T06:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE clause with exclusion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-with-exclusion/m-p/312240#M67695</link>
      <description>&lt;P&gt;Yeah ..But mlogan&amp;nbsp;desired output has not included the 7th observation [&lt;STRONG&gt;7 M101 Eng 10]&amp;nbsp;&lt;/STRONG&gt;. I just added that note .&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 07:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-with-exclusion/m-p/312240#M67695</guid>
      <dc:creator>monikka1991</dc:creator>
      <dc:date>2016-11-17T07:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE clause with exclusion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-with-exclusion/m-p/312257#M67702</link>
      <description>&lt;P&gt;Ah, you're correct, good catch!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But my guess is its an oversight on&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35631"&gt;@mlogan﻿&lt;/a&gt;&amp;nbsp;part. I guess he can respond either way!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 09:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-with-exclusion/m-p/312257#M67702</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-17T09:53:45Z</dc:date>
    </item>
  </channel>
</rss>

