<?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: SORTED X INDEXED in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SORTED-X-INDEXED/m-p/190409#M304457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. I think so. Once you make an index , you can use BY at anywhere , and no need to sort the table before BY .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 12:48:58 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2014-07-23T12:48:58Z</dc:date>
    <item>
      <title>SORTED X INDEXED</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SORTED-X-INDEXED/m-p/190406#M304454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we say that the main difference between a sorted sas data file and a indexed one is: the first is in a physical order, the second is in logical order?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 19:09:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SORTED-X-INDEXED/m-p/190406#M304454</guid>
      <dc:creator>gera_MG</dc:creator>
      <dc:date>2014-07-22T19:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: SORTED X INDEXED</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SORTED-X-INDEXED/m-p/190407#M304455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not familiar with the term 'logical' order when it comes to datasets, can you explain that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Googling sort vs index resulted in this, which is true for SAS as well, minus the new table part. It does create a new table, but it can have the same name as the old table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1 class="topictitle1"&gt;Sorting versus indexing&lt;/H1&gt;&lt;P&gt;Sorting a table physically reorders data into a sequential order and outputs the &lt;SPAN style="text-decoration: underline;"&gt;results to a new &lt;EM&gt;ACL&lt;/EM&gt; table&lt;/SPAN&gt;. Indexing does not make any change to the underlying physical order of data. Instead, it creates a separate index file that references records in the active table, allowing direct access to the records in a sequential order rather than a physical order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.acl.com/acl/920/index.jsp?topic=/com.acl.user_guide.help/data_analysis/c_sorting_versus_indexing.html" title="http://docs.acl.com/acl/920/index.jsp?topic=/com.acl.user_guide.help/data_analysis/c_sorting_versus_indexing.html"&gt;Help - ACL 9.2.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;FAQ paper on Index&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi30/008-30.pdf" title="http://www2.sas.com/proceedings/sugi30/008-30.pdf"&gt;http://www2.sas.com/proceedings/sugi30/008-30.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 19:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SORTED-X-INDEXED/m-p/190407#M304455</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-07-22T19:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: SORTED X INDEXED</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SORTED-X-INDEXED/m-p/190408#M304456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With "logical order" I mean that the SAS data file remains intact. It is ordered by its index file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 23:38:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SORTED-X-INDEXED/m-p/190408#M304456</guid>
      <dc:creator>gera_MG</dc:creator>
      <dc:date>2014-07-22T23:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: SORTED X INDEXED</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SORTED-X-INDEXED/m-p/190409#M304457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. I think so. Once you make an index , you can use BY at anywhere , and no need to sort the table before BY .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 12:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SORTED-X-INDEXED/m-p/190409#M304457</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-07-23T12:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: SORTED X INDEXED</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SORTED-X-INDEXED/m-p/190410#M304458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some other issues you might want to know about ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a general rule, it is extremely time-consuming for SAS to retrieve an entire data set in sorted order by using an index.&amp;nbsp; Indexes are better suited for retrieving a small subset, rather than retrieving an entire data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you sort a data set, SAS stores the sorted order.&amp;nbsp; You can see that at the end of a PROC CONTENTS report.&amp;nbsp; So if you were to run the exact same PROC SORT twice, SAS is smart enough to skip running the second one.&amp;nbsp; There is also a SORTEDBY= data set option, which tells SAS that the data set is in order when it is created in some other way other than by PROC SORT.&amp;nbsp; That has its complications, however, so don't use it blindly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing a data set destroys the index.&amp;nbsp; But in many cases, changing a data set preserves the sorted order of the observations so that future sorting may not be needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So there are other differences, but are they "main differences"?&amp;nbsp; Beauty is in the eye of the beholder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 16:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SORTED-X-INDEXED/m-p/190410#M304458</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-07-23T16:55:21Z</dc:date>
    </item>
  </channel>
</rss>

