<?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: Question on Where statement in Proc step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Where-statement-in-Proc-step/m-p/648210#M194123</link>
    <description>Thank you. But can i ask you, whether sas accepts more than three conditions in the where statement?</description>
    <pubDate>Fri, 15 May 2020 23:43:08 GMT</pubDate>
    <dc:creator>Amali6</dc:creator>
    <dc:date>2020-05-15T23:43:08Z</dc:date>
    <item>
      <title>Question on Where statement in Proc step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Where-statement-in-Proc-step/m-p/647944#M193959</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can someone say how many conditions are allowed to be given inside a where statement in the Proc step please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 00:35:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Where-statement-in-Proc-step/m-p/647944#M193959</guid>
      <dc:creator>Amali6</dc:creator>
      <dc:date>2020-05-15T00:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Where statement in Proc step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Where-statement-in-Proc-step/m-p/647948#M193963</link>
      <description>&lt;P&gt;I doubt there is a design limit. There might be some physical limit it terms of memory usage or compile time.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 01:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Where-statement-in-Proc-step/m-p/647948#M193963</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-05-15T01:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Where statement in Proc step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Where-statement-in-Proc-step/m-p/647969#M193979</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/328574"&gt;@Amali6&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can someone say how many conditions are allowed to be given inside a where statement in the Proc step please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I doubt that such a question arises without having a specific use issue. You might show the specific where that you attempted and discuss any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A complex where clause will take you into the realm of&amp;nbsp; truth tables and how to result the behavior of AND and OR bits of a statement.&lt;/P&gt;
&lt;P&gt;There is a limit of one WHERE statement per proc or data step.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 06:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Where-statement-in-Proc-step/m-p/647969#M193979</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-15T06:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Where statement in Proc step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Where-statement-in-Proc-step/m-p/647987#M193990</link>
      <description>&lt;P&gt;Only one. E.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.class;
  where sex='F' and age&amp;gt;14;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;has only one condition, which is compound.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use WHERE ALSO to expand on the initial condition, but that is just the same as using AND.&lt;/P&gt;
&lt;P&gt;The code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.class;
  where sex='F';
  where also age&amp;gt;14;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;gives the same result as the first example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are various limits to the length of conditions on different platforms.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, some DBMS systems (possibly also SAS, I haven't checked) have a limit on the number of values you can put in an IN(...) condition. In the good old days a lot of work was done to get around this limitation in SAS/ACCESS to DB2, I think the limit was 1000 values at that time, and that was not always enough (there was no DBKEY data set option in SAS/ACCESS at that time, which would be the obvious solution today). Last time I hit this limit was on Oracle, I think it was 10000 values. But again, that may have changed now.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 10:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Where-statement-in-Proc-step/m-p/647987#M193990</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-05-15T10:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Where statement in Proc step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Where-statement-in-Proc-step/m-p/648210#M194123</link>
      <description>Thank you. But can i ask you, whether sas accepts more than three conditions in the where statement?</description>
      <pubDate>Fri, 15 May 2020 23:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Where-statement-in-Proc-step/m-p/648210#M194123</guid>
      <dc:creator>Amali6</dc:creator>
      <dc:date>2020-05-15T23:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Where statement in Proc step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Where-statement-in-Proc-step/m-p/648231#M194137</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;&amp;nbsp;can i ask you, whether sas accepts more than three conditions in the where statement?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Yes, there is not limit as was said above.&lt;/P&gt;
&lt;P&gt;Can I ask you why you don't try rather than ask here? It would be much faster.&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 02:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Where-statement-in-Proc-step/m-p/648231#M194137</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-16T02:21:19Z</dc:date>
    </item>
  </channel>
</rss>

