<?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: idxwhere in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/idxwhere/m-p/458009#M116198</link>
    <description>&lt;P&gt;It can, depending upon how it's used. According to the documentation you pointed to:&lt;/P&gt;
&lt;P&gt;The IDXWHERE= data set option overrides the software's decision regarding whether to use an index to satisfy the conditions of a WHERE expression as follows:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;A name="a001380884" target="_blank"&gt;&lt;/A&gt;IDXWHERE=YES tells SAS to decide which index is the best for optimizing a WHERE expression, disregarding the possibility that a sequential search of the data file might be more resource efficient.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;A name="a001380885" target="_blank"&gt;&lt;/A&gt;IDXWHERE=NO tells SAS to ignore all indexes and satisfy the conditions of a WHERE expression by sequentially searching the data file.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;A name="a001380886" target="_blank"&gt;&lt;/A&gt;Using an index to process a BY statement cannot be overridden with IDXWHERE=.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Apr 2018 02:30:55 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2018-04-27T02:30:55Z</dc:date>
    <item>
      <title>idxwhere</title>
      <link>https://communities.sas.com/t5/SAS-Programming/idxwhere/m-p/458008#M116197</link>
      <description>&lt;P&gt;Does idxwhere override where conditions that can be optimized and compound optimized from the link below?&lt;/P&gt;
&lt;P&gt;Could it force an index to be used when the where includes an or condition with different variables?&lt;/P&gt;
&lt;P&gt;Ex.&amp;nbsp; where x in (some list) or y in (some list);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000440261.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000440261.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 02:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/idxwhere/m-p/458008#M116197</guid>
      <dc:creator>proctice</dc:creator>
      <dc:date>2018-04-27T02:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: idxwhere</title>
      <link>https://communities.sas.com/t5/SAS-Programming/idxwhere/m-p/458009#M116198</link>
      <description>&lt;P&gt;It can, depending upon how it's used. According to the documentation you pointed to:&lt;/P&gt;
&lt;P&gt;The IDXWHERE= data set option overrides the software's decision regarding whether to use an index to satisfy the conditions of a WHERE expression as follows:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;A name="a001380884" target="_blank"&gt;&lt;/A&gt;IDXWHERE=YES tells SAS to decide which index is the best for optimizing a WHERE expression, disregarding the possibility that a sequential search of the data file might be more resource efficient.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;A name="a001380885" target="_blank"&gt;&lt;/A&gt;IDXWHERE=NO tells SAS to ignore all indexes and satisfy the conditions of a WHERE expression by sequentially searching the data file.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;A name="a001380886" target="_blank"&gt;&lt;/A&gt;Using an index to process a BY statement cannot be overridden with IDXWHERE=.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 02:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/idxwhere/m-p/458009#M116198</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-04-27T02:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: idxwhere</title>
      <link>https://communities.sas.com/t5/SAS-Programming/idxwhere/m-p/458010#M116199</link>
      <description>&lt;P&gt;The part that is confusing about the documentation is that SAS is still deciding which index is best. So, I'm not sure what rules it uses when idxwhere=yes, if not the same rules it uses without that option.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also wasn't sure if "&lt;SPAN&gt;the software's decision regarding whether to use an index" is referring to those optimization rules.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 02:49:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/idxwhere/m-p/458010#M116199</guid>
      <dc:creator>proctice</dc:creator>
      <dc:date>2018-04-27T02:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: idxwhere</title>
      <link>https://communities.sas.com/t5/SAS-Programming/idxwhere/m-p/458011#M116200</link>
      <description>&lt;P&gt;The option can be used to force SAS to use an index, irrespective of whether its optimization routine suggests that it should or shouldn't. The idxname option can be used to specify a particular index to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 02:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/idxwhere/m-p/458011#M116200</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-04-27T02:49:07Z</dc:date>
    </item>
  </channel>
</rss>

