<?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 Creating Indexes on New Variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Creating-Indexes-on-New-Variables/m-p/57665#M16083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am trying to create an index on a new data set where I have a new variable.&lt;/P&gt;&lt;P&gt; Here is the code that I have so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.all_staff (index=Age_Hired);&lt;/P&gt;&lt;P&gt;&amp;nbsp; set orion.sales orion.nonsales;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Age_Hired =(year(Hire_Date)-year(Birth_Date));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; So I am trying to create an index on the new variable Age_Hired, and I get the following message in my log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 23-7: Invalid value for the INDEX option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am not sure where I am going wrong with this or if I cannot create a new index against a new variable (which would seem silly since that is a problem on my homework assignment &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Could someone please let me know where I am going wrong with my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Apr 2012 19:33:47 GMT</pubDate>
    <dc:creator>InfoAlisaA</dc:creator>
    <dc:date>2012-04-06T19:33:47Z</dc:date>
    <item>
      <title>Creating Indexes on New Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-Indexes-on-New-Variables/m-p/57665#M16083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am trying to create an index on a new data set where I have a new variable.&lt;/P&gt;&lt;P&gt; Here is the code that I have so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.all_staff (index=Age_Hired);&lt;/P&gt;&lt;P&gt;&amp;nbsp; set orion.sales orion.nonsales;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Age_Hired =(year(Hire_Date)-year(Birth_Date));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; So I am trying to create an index on the new variable Age_Hired, and I get the following message in my log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 23-7: Invalid value for the INDEX option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am not sure where I am going wrong with this or if I cannot create a new index against a new variable (which would seem silly since that is a problem on my homework assignment &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Could someone please let me know where I am going wrong with my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 19:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-Indexes-on-New-Variables/m-p/57665#M16083</guid>
      <dc:creator>InfoAlisaA</dc:creator>
      <dc:date>2012-04-06T19:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Indexes on New Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-Indexes-on-New-Variables/m-p/57666#M16084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;even when we want only a single simple index, the data set option value should appear in&amp;nbsp; (parentheses), like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; index=(&amp;nbsp; age_hired )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 21:51:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-Indexes-on-New-Variables/m-p/57666#M16084</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2012-04-06T21:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Indexes on New Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-Indexes-on-New-Variables/m-p/57667#M16085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks for letting me know what was wrong with my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2012 15:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-Indexes-on-New-Variables/m-p/57667#M16085</guid>
      <dc:creator>InfoAlisaA</dc:creator>
      <dc:date>2012-04-07T15:43:06Z</dc:date>
    </item>
  </channel>
</rss>

