<?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 statement for several variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Where-statement-for-several-variables/m-p/786635#M251203</link>
    <description>&lt;P&gt;A useful shortcut:&lt;BR /&gt;&lt;BR /&gt;set ABgn_Miss (where=(drug='abc' and uns_n and sns_n));&lt;BR /&gt;&lt;BR /&gt;Numeric values of missing and zero are considered to be false while all other values are considered to be true.&lt;/P&gt;</description>
    <pubDate>Sun, 19 Dec 2021 13:22:47 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2021-12-19T13:22:47Z</dc:date>
    <item>
      <title>Where statement for several variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-statement-for-several-variables/m-p/786630#M251199</link>
      <description>&lt;P&gt;I'm trying to get a subset dataset which contains variables uns_n and sns_n ne '.' and uns_n and sns_n ne 0 and drug = 'abc'.&lt;/P&gt;&lt;P&gt;Here's the code I had:&lt;/P&gt;&lt;P&gt;data ABgn;&lt;BR /&gt;set ABgn_Miss (where=(drug='abc') and uns_n ne . &amp;amp; uns_n ne 0 &amp;amp; sns_n ne . &amp;amp; sns_n ne 0 );&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;I also tried different ways but I'm not getting the right data set needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering what is the best way to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 02:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-statement-for-several-variables/m-p/786630#M251199</guid>
      <dc:creator>mayasak</dc:creator>
      <dc:date>2021-12-19T02:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement for several variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-statement-for-several-variables/m-p/786631#M251200</link>
      <description>&lt;P&gt;Try this - it looks like your brackets aren't quite right.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ABgn;
set ABgn_Miss (where=(drug='abc' and uns_n not in (.,0) and sns_n not in (.,0));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 19 Dec 2021 04:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-statement-for-several-variables/m-p/786631#M251200</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-12-19T04:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement for several variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-statement-for-several-variables/m-p/786635#M251203</link>
      <description>&lt;P&gt;A useful shortcut:&lt;BR /&gt;&lt;BR /&gt;set ABgn_Miss (where=(drug='abc' and uns_n and sns_n));&lt;BR /&gt;&lt;BR /&gt;Numeric values of missing and zero are considered to be false while all other values are considered to be true.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 13:22:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-statement-for-several-variables/m-p/786635#M251203</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-12-19T13:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement for several variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-statement-for-several-variables/m-p/786847#M251270</link>
      <description>Thank you. That was helpful</description>
      <pubDate>Mon, 20 Dec 2021 21:54:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-statement-for-several-variables/m-p/786847#M251270</guid>
      <dc:creator>mayasak</dc:creator>
      <dc:date>2021-12-20T21:54:41Z</dc:date>
    </item>
  </channel>
</rss>

