<?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: subset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/subset/m-p/393434#M94736</link>
    <description>&lt;P&gt;If you use OR then you will get dates not equal to NA or &lt;SPAN&gt;results_in_death not equal to yes&lt;/SPAN&gt;. Why are you surprised?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2017 05:50:38 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2017-09-06T05:50:38Z</dc:date>
    <item>
      <title>subset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subset/m-p/393427#M94730</link>
      <description>&lt;P&gt;&lt;BR /&gt;&amp;nbsp;proc sql;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table want as&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from&amp;nbsp; have&lt;BR /&gt;&amp;nbsp;&amp;nbsp; where&amp;nbsp; prxmatch("/1|Y|yes/i",Results_In_Death)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; union&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from&amp;nbsp; have&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where prxmatch("/fatal/i",OutCome)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;union&lt;BR /&gt;&amp;nbsp;&amp;nbsp;select * from&amp;nbsp; have&lt;BR /&gt;&amp;nbsp;&amp;nbsp;where&amp;nbsp; prxmatch("/death|dead|fatal|(subject|patient|participant).*(expire)/i",Term_Verbatim)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;union&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from&amp;nbsp; have&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where prxmatch("/na/i",Death_Date)=0;&lt;BR /&gt;&amp;nbsp;quit;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;the idea is to subset the dataset have that meet the where condition.but the results are not expected. for example results_in_death is showing values like 0,na etc.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; also outcome is showing values like disease progression etc&lt;BR /&gt;&amp;nbsp;how to subset the data just based on where conditions?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 05:20:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subset/m-p/393427#M94730</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2017-09-06T05:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: subset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subset/m-p/393430#M94732</link>
      <description>&lt;P&gt;Don't you mean&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sql;
    create table want as
      select * from  have
   where prxmatch("/1|Y|yes/i",Results_In_Death)
     and prxmatch("/fatal/i",OutCome)
     and prxmatch("/death|dead|fatal|(subject|patient|participant).*(expire)/i",Term_Verbatim)
     and prxmatch("/na/i",Death_Date)=0;
 quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that the parentheses in the third test seem oddly placed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 05:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subset/m-p/393430#M94732</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-09-06T05:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: subset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subset/m-p/393431#M94733</link>
      <description>&lt;P&gt;it is OR not AND&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 05:46:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subset/m-p/393431#M94733</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2017-09-06T05:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: subset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subset/m-p/393434#M94736</link>
      <description>&lt;P&gt;If you use OR then you will get dates not equal to NA or &lt;SPAN&gt;results_in_death not equal to yes&lt;/SPAN&gt;. Why are you surprised?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 05:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subset/m-p/393434#M94736</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-09-06T05:50:38Z</dc:date>
    </item>
  </channel>
</rss>

