<?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 check whether an index is used in a data step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35877#M7091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I know whether an index is really used by a data step? I user SAS 9.2 and the data file is a sas file with a simple index on one field. The data step has a where statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2012 12:20:07 GMT</pubDate>
    <dc:creator>Eva</dc:creator>
    <dc:date>2012-03-19T12:20:07Z</dc:date>
    <item>
      <title>check whether an index is used in a data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35877#M7091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I know whether an index is really used by a data step? I user SAS 9.2 and the data file is a sas file with a simple index on one field. The data step has a where statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 12:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35877#M7091</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2012-03-19T12:20:07Z</dc:date>
    </item>
    <item>
      <title>check whether an index is used in a data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35878#M7092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;option msglevel=i;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000279149.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000279149.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 12:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35878#M7092</guid>
      <dc:creator>Keith</dc:creator>
      <dc:date>2012-03-19T12:22:29Z</dc:date>
    </item>
    <item>
      <title>check whether an index is used in a data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35879#M7093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the MSGLEVEL=I sas system option.&amp;nbsp; For further reading, take a look at: &lt;A href="http://www2.sas.com/proceedings/sugi29/123-29.pdf"&gt;http://www2.sas.com/proceedings/sugi29/123-29.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 12:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35879#M7093</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-03-19T12:26:13Z</dc:date>
    </item>
    <item>
      <title>check whether an index is used in a data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35880#M7094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Keith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried it and see nothing in the sas log which haven't seen before. Does that mean that the index is not used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 12:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35880#M7094</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2012-03-19T12:28:46Z</dc:date>
    </item>
    <item>
      <title>check whether an index is used in a data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35881#M7095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is my understanding.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 13:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35881#M7095</guid>
      <dc:creator>Keith</dc:creator>
      <dc:date>2012-03-19T13:16:02Z</dc:date>
    </item>
    <item>
      <title>check whether an index is used in a data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35882#M7096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Out of curiosity (and I don't really know if it makes a difference) are you using a where option in a set statement, or actually including a where statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 13:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35882#M7096</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-03-19T13:48:13Z</dc:date>
    </item>
    <item>
      <title>check whether an index is used in a data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35883#M7097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No message isn't what is implied by the documentation:&lt;/P&gt;&lt;H3 style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; font-size: 16px; padding-top: 0.7em; background-color: #ffffff;"&gt;&lt;A name="a000989501" style="margin-top: 1em; line-height: 1.25em; font-family: inherit;"&gt;Displaying Index Usage Information in the SAS Log&lt;/A&gt;&lt;/H3&gt;&lt;P style="margin-top: 1.4em; line-height: 1.25em; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; background-color: #ffffff;"&gt;&lt;A name="a001380893" style="line-height: 1.25em; font-family: inherit;"&gt;&lt;/A&gt;To display information in the SAS log regarding index usage, change the value of the MSGLEVEL= system option from its default value of N to I. When you issue &lt;SPAN class="strongMono" style="font-family: monospace, 'courier new', courier, fixed; font-weight: bold;"&gt;&lt;A name="a000989502" style="font-weight: normal; line-height: 1.25em; font-family: inherit;"&gt;&lt;/A&gt;options msglevel=i;&lt;/SPAN&gt; , the following occurs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="margin-top: 1.4em; line-height: 1.25em;"&gt;&lt;A name="a001380894" style="line-height: 1.25em; font-family: inherit;"&gt;&lt;/A&gt;If an index is used, a message displays specifying the name of the index.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="margin-top: 1.4em; line-height: 1.25em;"&gt;&lt;A name="a001380895" style="line-height: 1.25em; font-family: inherit;"&gt;&lt;/A&gt;If an index is not used but one exists that could optimize at least one condition in the WHERE expression, messages provide suggestions as to what you can do to influence SAS to use the index; for example, a message could suggest sorting the data file into index order or specifying more buffers.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="margin-top: 1.4em; line-height: 1.25em;"&gt;&lt;A name="a001380896" style="line-height: 1.25em; font-family: inherit;"&gt;&lt;/A&gt;A message displays the IDXWHERE= or IDXNAME= data set option value if the setting can affect index processing.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are just trying to test whether using an index will be beneficial, you can always force it by using the idxwhere and/or idsname options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 13:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35883#M7097</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-03-19T13:54:54Z</dc:date>
    </item>
    <item>
      <title>check whether an index is used in a data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35884#M7098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a where statement in the data step like in this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.myfile;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set report.xyfile;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where a = 100;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 09:53:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-whether-an-index-is-used-in-a-data-step/m-p/35884#M7098</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2012-03-29T09:53:09Z</dc:date>
    </item>
  </channel>
</rss>

