<?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: How to create a where statement with three conditions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-where-statement-with-three-conditions/m-p/666671#M199509</link>
    <description>&lt;P&gt;How about this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc anova data=import(where=(maxdidsa = 1 and indic=1 and maxiwhite=0));
  class mipell; 
  model mfinalgpa = mipell; 
  means mipell / tukey; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 02 Jul 2020 18:55:57 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-07-02T18:55:57Z</dc:date>
    <item>
      <title>How to create a where statement with three conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-where-statement-with-three-conditions/m-p/666666#M199508</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Can anyone explain to me how to create a where statement with three conditions? I am running an ANOVA test and I want to only include responses where the indic variable equals 0, where the maxiwhite variable equals 0, and where the maxdidsa equals 0. This is the code I have, and there were no problems in the log, but I want to make sure set it up correctly and don't need to put the three where statements together before the ANOVA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data gpa;&lt;BR /&gt;set import;&lt;/P&gt;&lt;P&gt;where indic = 1;&lt;BR /&gt;where also maxiwhite = 0;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc anova; class mipell; model mfinalgpa = mipell; means mipell / tukey; where maxdidsa = 1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 18:47:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-where-statement-with-three-conditions/m-p/666666#M199508</guid>
      <dc:creator>cberryman</dc:creator>
      <dc:date>2020-07-02T18:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a where statement with three conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-where-statement-with-three-conditions/m-p/666671#M199509</link>
      <description>&lt;P&gt;How about this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc anova data=import(where=(maxdidsa = 1 and indic=1 and maxiwhite=0));
  class mipell; 
  model mfinalgpa = mipell; 
  means mipell / tukey; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Jul 2020 18:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-where-statement-with-three-conditions/m-p/666671#M199509</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-07-02T18:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a where statement with three conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-where-statement-with-three-conditions/m-p/666724#M199540</link>
      <description>&lt;P&gt;You syntax is correct, but creating an intermediate table is unnecessary and wasteful.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc anova data=IMPORT;
&amp;nbsp;&amp;nbsp;where MAXDIDSA=1 and INDIC=1 and MAXIWHITE=0;&amp;nbsp;
&amp;nbsp; class MIPELL;
&amp;nbsp; model MFINALGPA = MIPELL;
&amp;nbsp; means MIPELL / tukey;&amp;nbsp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Jul 2020 01:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-where-statement-with-three-conditions/m-p/666724#M199540</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-03T01:59:53Z</dc:date>
    </item>
  </channel>
</rss>

