<?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: double WHERE statement in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/double-WHERE-statement/m-p/474947#M30811</link>
    <description>&lt;PRE&gt;where=(Month in (1,2,3) and Day in (1,2,3,4,5))&lt;/PRE&gt;
&lt;P&gt;just too many parentheses.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jul 2018 15:32:05 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-07-02T15:32:05Z</dc:date>
    <item>
      <title>double WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/double-WHERE-statement/m-p/474946#M30810</link>
      <description>&lt;P&gt;Would you be able to tell me how to fix my double WHERE statement so it works?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc reg data=datananame (where=(Month in (1,2,3)) and (Day in (1,2,3,4,5)));
model Y=X;
run;

&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/double-WHERE-statement/m-p/474946#M30810</guid>
      <dc:creator>matt23</dc:creator>
      <dc:date>2018-07-02T15:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: double WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/double-WHERE-statement/m-p/474947#M30811</link>
      <description>&lt;PRE&gt;where=(Month in (1,2,3) and Day in (1,2,3,4,5))&lt;/PRE&gt;
&lt;P&gt;just too many parentheses.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/double-WHERE-statement/m-p/474947#M30811</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-02T15:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: double WHERE statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/double-WHERE-statement/m-p/474949#M30812</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/216327"&gt;@matt23&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Would you be able to tell me how to fix my double WHERE statement so it works?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc reg data=datananame (where=(Month in (1,2,3)) and (Day in (1,2,3,4,5)));
model Y=X;
run;

&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You just need to get the parenthesis nested properly.&lt;/P&gt;
&lt;P&gt;You could also look at using the WHERE statement instead of the WHERE= dataset option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That way you can a WHERE ALSO statement to add additional restrictions.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=datananame;
  where Month in (1,2,3);
  where also Day in (1,2,3,4,5);
  model Y=X;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Jul 2018 15:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/double-WHERE-statement/m-p/474949#M30812</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-07-02T15:39:55Z</dc:date>
    </item>
  </channel>
</rss>

