<?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 Updating Existing Index in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Updating-Existing-Index/m-p/553212#M153809</link>
    <description>&lt;P&gt;We have a large data set that we are maintaining on a monthly basis. In order to make it more efficient for people on our team to use we are attempting to index it on a few different variables, which initially took quite a long time. I'm wondering if there is a way to update an existing index rather than re-indexing the entire data set every time we append to the data? My thinking is that if we are able to just take the new values in the set and add those to the index we could save significantly on time, but I'm not sure if the syntax exists to do that. I am creating my index with the below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test2 (index=(c1
c2
c3
c4
c5
c6));
set test;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2019 13:03:57 GMT</pubDate>
    <dc:creator>A_SAS_Man</dc:creator>
    <dc:date>2019-04-23T13:03:57Z</dc:date>
    <item>
      <title>Updating Existing Index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-Existing-Index/m-p/553212#M153809</link>
      <description>&lt;P&gt;We have a large data set that we are maintaining on a monthly basis. In order to make it more efficient for people on our team to use we are attempting to index it on a few different variables, which initially took quite a long time. I'm wondering if there is a way to update an existing index rather than re-indexing the entire data set every time we append to the data? My thinking is that if we are able to just take the new values in the set and add those to the index we could save significantly on time, but I'm not sure if the syntax exists to do that. I am creating my index with the below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test2 (index=(c1
c2
c3
c4
c5
c6));
set test;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 13:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-Existing-Index/m-p/553212#M153809</guid>
      <dc:creator>A_SAS_Man</dc:creator>
      <dc:date>2019-04-23T13:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Existing Index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-Existing-Index/m-p/553217#M153813</link>
      <description>&lt;P&gt;No need to create the entire index again. Use &lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p0fom8inbqxmmin1xjaoie72jiee.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;PROC DATASETS&lt;/A&gt; like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=mylib;
   modify test2;
      index centiles c1/ refresh;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 13:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-Existing-Index/m-p/553217#M153813</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-04-23T13:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Existing Index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-Existing-Index/m-p/553227#M153817</link>
      <description>&lt;P&gt;To be clear, to update all six indexes of interest, do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=mylib;
   modify test2;
      index centiles c1/ refresh;
      index centiles c2/ refresh;
      index centiles c3/ refresh;
      index centiles c4/ refresh;
      index centiles c5/ refresh;
      index centiles c6/ refresh;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Apr 2019 13:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-Existing-Index/m-p/553227#M153817</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-04-23T13:20:34Z</dc:date>
    </item>
  </channel>
</rss>

