<?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: List out all tables and indexes and then recreate? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/List-out-all-tables-and-indexes-and-then-recreate/m-p/645156#M192815</link>
    <description>&lt;P&gt;SASHELP.VINDEX, which is probably dictionary.index, will show which indexes are applicable to your data sets. Or the PROC DATASETS output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's a "magic loop"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/189060"&gt;@WorkingMan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I want to list out all BASE tables and indexes in a SAS library and then recreate using data set statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normal data set without modify statement will wipe out the index option of the original table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming I have 30 tables in the library, how can i list out all table name and its index columns? I don't see that in dictionary table. If it is found in anywhere, i can assign it to a macro to perform the &lt;FONT face="arial black,avant garde" color="#800080"&gt;&lt;STRONG&gt;magic loop&lt;/STRONG&gt; &lt;/FONT&gt;for all tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 04:05:18 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-05-05T04:05:18Z</dc:date>
    <item>
      <title>List out all tables and indexes and then recreate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/List-out-all-tables-and-indexes-and-then-recreate/m-p/645155#M192814</link>
      <description>&lt;P&gt;Hi, I want to list out all BASE tables and indexes in a SAS library and then recreate using data set statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normal data set without modify statement will wipe out the index option of the original table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming I have 30 tables in the library, how can i list out all table name and its index columns? I don't see that in dictionary table. If it is found in anywhere, i can assign it to a macro to perform the magic loop for all tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 04:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/List-out-all-tables-and-indexes-and-then-recreate/m-p/645155#M192814</guid>
      <dc:creator>WorkingMan</dc:creator>
      <dc:date>2020-05-05T04:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: List out all tables and indexes and then recreate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/List-out-all-tables-and-indexes-and-then-recreate/m-p/645156#M192815</link>
      <description>&lt;P&gt;SASHELP.VINDEX, which is probably dictionary.index, will show which indexes are applicable to your data sets. Or the PROC DATASETS output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's a "magic loop"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/189060"&gt;@WorkingMan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I want to list out all BASE tables and indexes in a SAS library and then recreate using data set statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normal data set without modify statement will wipe out the index option of the original table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming I have 30 tables in the library, how can i list out all table name and its index columns? I don't see that in dictionary table. If it is found in anywhere, i can assign it to a macro to perform the &lt;FONT face="arial black,avant garde" color="#800080"&gt;&lt;STRONG&gt;magic loop&lt;/STRONG&gt; &lt;/FONT&gt;for all tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 04:05:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/List-out-all-tables-and-indexes-and-then-recreate/m-p/645156#M192815</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-05-05T04:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: List out all tables and indexes and then recreate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/List-out-all-tables-and-indexes-and-then-recreate/m-p/645168#M192827</link>
      <description>&lt;P&gt;Why recreate the tables as is? Do you intend to change anything?&lt;/P&gt;
&lt;P&gt;Also don't forget to set the&lt;EM&gt; sorted by&lt;/EM&gt;&amp;nbsp; flag, if applicable, in your permanent tables.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 05:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/List-out-all-tables-and-indexes-and-then-recreate/m-p/645168#M192827</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-05T05:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: List out all tables and indexes and then recreate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/List-out-all-tables-and-indexes-and-then-recreate/m-p/645248#M192859</link>
      <description>&lt;P&gt;Try this code,it could list info of WORK .Check "Use of Variable in Indexes".&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class(index=(x=(name sex)));set sashelp.class;run;
data class1;set sashelp.class;run;

proc contents data=work._all_ out=want noprint  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 May 2020 11:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/List-out-all-tables-and-indexes-and-then-recreate/m-p/645248#M192859</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-05-05T11:38:07Z</dc:date>
    </item>
  </channel>
</rss>

