<?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 Where Statement Subsetting Issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Where-Statement-Subsetting-Issue/m-p/785774#M250811</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue with my data sub setting. I want to keep records of subjects who are not Black or African American Screen Failures subjects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the following code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data adsl2;&lt;BR /&gt;set adsl;&lt;BR /&gt;where RACE ne "BLACK OR AFRICAN AMERICAN" and ARM ne "Screen Failure";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, for when I use this code it will only keep subjects who are not Black or African American and subjects who are not Screen Failures. How do I modify the code so that only Black Screen Failure subjects are dropped from the dataset?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 15:52:22 GMT</pubDate>
    <dc:creator>MikeXue</dc:creator>
    <dc:date>2021-12-13T15:52:22Z</dc:date>
    <item>
      <title>Where Statement Subsetting Issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-Statement-Subsetting-Issue/m-p/785774#M250811</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue with my data sub setting. I want to keep records of subjects who are not Black or African American Screen Failures subjects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the following code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data adsl2;&lt;BR /&gt;set adsl;&lt;BR /&gt;where RACE ne "BLACK OR AFRICAN AMERICAN" and ARM ne "Screen Failure";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, for when I use this code it will only keep subjects who are not Black or African American and subjects who are not Screen Failures. How do I modify the code so that only Black Screen Failure subjects are dropped from the dataset?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 15:52:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-Statement-Subsetting-Issue/m-p/785774#M250811</guid>
      <dc:creator>MikeXue</dc:creator>
      <dc:date>2021-12-13T15:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Where Statement Subsetting Issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-Statement-Subsetting-Issue/m-p/785794#M250823</link>
      <description>&lt;P&gt;Perhaps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data adsl2;
   set adsl;
   where not( RACE = "BLACK OR AFRICAN AMERICAN" and ARM = "Screen Failure");
run;&lt;/PRE&gt;
&lt;P&gt;no data example means code cannot be tested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way&lt;/P&gt;
&lt;PRE&gt;data adsl2;
   set adsl;
   IF  RACE = "BLACK OR AFRICAN AMERICAN" and ARM = "Screen Failure" then delete;
run;&lt;/PRE&gt;
&lt;P&gt;&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/408821"&gt;@MikeXue&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an issue with my data sub setting. I want to keep records of subjects who are not Black or African American Screen Failures subjects.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used the following code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data adsl2;&lt;BR /&gt;set adsl;&lt;BR /&gt;where RACE ne "BLACK OR AFRICAN AMERICAN" and ARM ne "Screen Failure";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, for when I use this code it will only keep subjects who are not Black or African American and subjects who are not Screen Failures. How do I modify the code so that only Black Screen Failure subjects are dropped from the dataset?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Michael&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 16:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-Statement-Subsetting-Issue/m-p/785794#M250823</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-12-13T16:30:33Z</dc:date>
    </item>
  </channel>
</rss>

