<?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 Index in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index/m-p/401511#M97425</link>
    <description>&lt;P&gt;1. I have a simple index defined on var1 in sas data set : one&lt;/P&gt;&lt;P&gt;2. when appending the data to the sas dataset in step1 with the new data set for ex: two the index that is already defined for the dataset one is lost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please see the below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data class(index=(name/unique));&amp;nbsp; &amp;nbsp; /* index created on name in the work.class*/&lt;BR /&gt;set sashelp.class;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc contents data=class;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;data class1;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;/* index is not there&amp;nbsp; in the work.class1*/&lt;/SPAN&gt;&lt;BR /&gt;set class (where= (name = 'Alfred'));&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc contents data=class1;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data class;&lt;BR /&gt;set class class1 ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc contents data=class;&amp;nbsp;&lt;SPAN&gt;/* index&amp;nbsp;is lost in&amp;nbsp;work.class*/&lt;/SPAN&gt;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kindly let me if I am doing some thing wrong.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2017 21:04:17 GMT</pubDate>
    <dc:creator>omkar</dc:creator>
    <dc:date>2017-10-05T21:04:17Z</dc:date>
    <item>
      <title>SAS Index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index/m-p/401511#M97425</link>
      <description>&lt;P&gt;1. I have a simple index defined on var1 in sas data set : one&lt;/P&gt;&lt;P&gt;2. when appending the data to the sas dataset in step1 with the new data set for ex: two the index that is already defined for the dataset one is lost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please see the below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data class(index=(name/unique));&amp;nbsp; &amp;nbsp; /* index created on name in the work.class*/&lt;BR /&gt;set sashelp.class;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc contents data=class;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;data class1;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;/* index is not there&amp;nbsp; in the work.class1*/&lt;/SPAN&gt;&lt;BR /&gt;set class (where= (name = 'Alfred'));&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc contents data=class1;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data class;&lt;BR /&gt;set class class1 ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc contents data=class;&amp;nbsp;&lt;SPAN&gt;/* index&amp;nbsp;is lost in&amp;nbsp;work.class*/&lt;/SPAN&gt;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kindly let me if I am doing some thing wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 21:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index/m-p/401511#M97425</guid>
      <dc:creator>omkar</dc:creator>
      <dc:date>2017-10-05T21:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Index/m-p/401513#M97426</link>
      <description>&lt;P&gt;Yes, since you’re creating a new data set. It happens to have the same name but that’s coincidental - and bad practice IMO.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try PROC APPEND or DATASETS&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 21:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Index/m-p/401513#M97426</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-05T21:20:20Z</dc:date>
    </item>
  </channel>
</rss>

