<?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 sas dataset with index in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-with-index/m-p/840441#M332313</link>
    <description>&lt;P&gt;Hi if I have created an index for my dataset, does that mean sorting is not required anymore for this dataset prior to merging? As I see this in some programs with index where sort is not added before merge..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 06:39:40 GMT</pubDate>
    <dc:creator>HeatherNewton</dc:creator>
    <dc:date>2022-10-25T06:39:40Z</dc:date>
    <item>
      <title>sas dataset with index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-with-index/m-p/840441#M332313</link>
      <description>&lt;P&gt;Hi if I have created an index for my dataset, does that mean sorting is not required anymore for this dataset prior to merging? As I see this in some programs with index where sort is not added before merge..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 06:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-with-index/m-p/840441#M332313</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-10-25T06:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset with index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-with-index/m-p/840442#M332314</link>
      <description>&lt;P&gt;Yes. Though, all the data sets in the Merge Statement must be either sorted or have an appropriate index.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the small example below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
input x y1;
datalines;
1 10
3 20
2 30
;

data two;
input x y2;
datalines;
1 40
2 50
3 60
;

proc datasets lib = work nolist;
   modify one;
   index create x;
run;quit;

data want;
   merge one two;
   by x;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Oct 2022 06:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-with-index/m-p/840442#M332314</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-10-25T06:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset with index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-with-index/m-p/840448#M332316</link>
      <description>&lt;P&gt;Even if it's technically possible to merge on indexed variables, it's seldom a good idea.&lt;/P&gt;
&lt;P&gt;In most situations sorting is much faster.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 08:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-with-index/m-p/840448#M332316</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-10-25T08:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: sas dataset with index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-dataset-with-index/m-p/840465#M332318</link>
      <description>&lt;P&gt;I've never used indexes for sorting. Indexes are only good when you need to extract a small (read: 10% or less) subset of the dataset. In all other cases, they only add additional I/O and therefore processing time.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 08:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-dataset-with-index/m-p/840465#M332318</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-25T08:28:14Z</dc:date>
    </item>
  </channel>
</rss>

