<?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 Re: How do I retrieve index names of a table and the columns used for those indexes. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-retrieve-index-names-of-a-table-and-the-columns-used/m-p/902473#M356658</link>
    <description>&lt;P&gt;Tak Erik! Det vil jeg se på med det samme!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; &amp;nbsp;(And for the non Danish speakers:&amp;nbsp; Thank you Erik! I will look at that (and use it) right away!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 11:39:45 GMT</pubDate>
    <dc:creator>Longimanus</dc:creator>
    <dc:date>2023-11-10T11:39:45Z</dc:date>
    <item>
      <title>How do I retrieve index names of a table and the columns used for those indexes.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-retrieve-index-names-of-a-table-and-the-columns-used/m-p/902458#M356649</link>
      <description>&lt;P&gt;Hi to y'all. I have surfed the web and got the PROC CONTENTS tip with a VERBOSE option.&amp;nbsp; For some reason (I do not understand) I cannot use this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;32 proc contents data=sashelp.class (verbose=yes);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;-------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR 22-7: Invalid option name VERBOSE.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If I just run PROC CONTENTS on another table and print the result I get this e.g.:&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV align="center"&gt;
&lt;TABLE summary="Page Layout" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;PRE class="batch"&gt;                                 The CONTENTS Procedure                                      
                                                                                                  
                            Alphabetic List of Indexes and Attributes                             
                                                                                                  
                                                  # of                                            
                                   Unique       Unique                                            
            #    Index             Option       Values    Variables                               
                                                                                                  
            1    CIP_COUNTRY_CD                      4                                            
            2    PRIM_KEY          YES       129552652    ACCOUNT_RK VALID_FROM_DTTM         &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I get this information in a table?&amp;nbsp; If I use the OUT= option to a table, I can see the variables used in the indexes, if they are a simple or part of a composite key. But niether the sequence of the vars in the composite nor the name of the index.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should be pretty basic and yet I cannot find it surfin' the web. I hope someone can help!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers from Copenhagen!&lt;/P&gt;
&lt;P&gt;Menno&amp;nbsp;&lt;/P&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 10:36:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-retrieve-index-names-of-a-table-and-the-columns-used/m-p/902458#M356649</guid>
      <dc:creator>Longimanus</dc:creator>
      <dc:date>2023-11-10T10:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I retrieve index names of a table and the columns used for those indexes.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-retrieve-index-names-of-a-table-and-the-columns-used/m-p/902469#M356654</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18088"&gt;@Longimanus&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can retrieve the wanted information from the sashelp.vindex table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that library names and member names are uppercase in the dictionary tables, so you need to use "where&amp;nbsp; libname = upcase(yourlib) and memname = upcase(yourds);.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers from Odense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 11:12:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-retrieve-index-names-of-a-table-and-the-columns-used/m-p/902469#M356654</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2023-11-10T11:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I retrieve index names of a table and the columns used for those indexes.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-retrieve-index-names-of-a-table-and-the-columns-used/m-p/902473#M356658</link>
      <description>&lt;P&gt;Tak Erik! Det vil jeg se på med det samme!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; &amp;nbsp;(And for the non Danish speakers:&amp;nbsp; Thank you Erik! I will look at that (and use it) right away!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 11:39:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-retrieve-index-names-of-a-table-and-the-columns-used/m-p/902473#M356658</guid>
      <dc:creator>Longimanus</dc:creator>
      <dc:date>2023-11-10T11:39:45Z</dc:date>
    </item>
  </channel>
</rss>

