<?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 complex indexes in datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-complex-indexes-in-datasets/m-p/46765#M9674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The term you should search for in the SAS on-line doc is "composite index".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Linus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 09:41:19 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2011-11-14T09:41:19Z</dc:date>
    <item>
      <title>Creating complex indexes in datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-complex-indexes-in-datasets/m-p/46764#M9673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, everybody!&lt;/P&gt;&lt;P&gt;We can create simple indexes using the following statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc SQL;&lt;/P&gt;&lt;P&gt;Create Index {Index_name} On {Table_name} (Table_variable)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Quit; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes we have more than one variable to match data in datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;A.Field1 = B.Field1 And&lt;/P&gt;&lt;P&gt;A.Field2 = B.Field2 &lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To decrease work time it is necessary to create indexes. But in this situation it is not so efficient to create two simple indexes on Field1 and Field2, especially if data in Field1 or Field2 have only two or three variants (1, 2 and 3 for example).&lt;/P&gt;&lt;P&gt;In Oracle we can create complex indexes on two or more fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I create complex index in SAS Dataset?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 09:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-complex-indexes-in-datasets/m-p/46764#M9673</guid>
      <dc:creator>V_Andy</dc:creator>
      <dc:date>2011-11-14T09:29:10Z</dc:date>
    </item>
    <item>
      <title>Creating complex indexes in datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-complex-indexes-in-datasets/m-p/46765#M9674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The term you should search for in the SAS on-line doc is "composite index".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Linus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 09:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-complex-indexes-in-datasets/m-p/46765#M9674</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2011-11-14T09:41:19Z</dc:date>
    </item>
    <item>
      <title>Creating complex indexes in datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-complex-indexes-in-datasets/m-p/46766#M9675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc SQL;&lt;/P&gt;&lt;P&gt;Create Index Index_name On Table_name (Field1,Field2)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Quit; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc datasets library=work nolist;&lt;/P&gt;&lt;P&gt; modify table_name;&lt;/P&gt;&lt;P&gt; index create index_name=(field1 field2 );&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 02:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-complex-indexes-in-datasets/m-p/46766#M9675</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-11-15T02:10:08Z</dc:date>
    </item>
  </channel>
</rss>

