<?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 Copy All table names from EG to another document in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/462959#M29867</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've just started learning SAS and im using EG. I was wondering is there a way of copying all of the table names in a SAS library and pasting it into another platform (excel, word, notepad etc.). Very primitive question I know but I'm looking to create a document that details what is in each table and why I would use it. It would be a lot easier if i could copy all the names at once rather than right them manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies if this is posted on the incorrect board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Barry&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 09:41:05 GMT</pubDate>
    <dc:creator>bjlav90</dc:creator>
    <dc:date>2018-05-17T09:41:05Z</dc:date>
    <item>
      <title>Copy All table names from EG to another document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/462959#M29867</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've just started learning SAS and im using EG. I was wondering is there a way of copying all of the table names in a SAS library and pasting it into another platform (excel, word, notepad etc.). Very primitive question I know but I'm looking to create a document that details what is in each table and why I would use it. It would be a lot easier if i could copy all the names at once rather than right them manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies if this is posted on the incorrect board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Barry&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 09:41:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/462959#M29867</guid>
      <dc:creator>bjlav90</dc:creator>
      <dc:date>2018-05-17T09:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Copy All table names from EG to another document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/462961#M29868</link>
      <description>&lt;PRE&gt;proc print data=sashelp.vtable;
  where libname="YOURLIB";&lt;BR /&gt;  var memname;
run;&lt;/PRE&gt;
&lt;P&gt;The above will print to the output window all the tables names which you can then copy to whichever output. This is probably the easiest.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 09:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/462961#M29868</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-17T09:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Copy All table names from EG to another document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/462962#M29869</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select memname from dictionary.tables
where libname = "YOURLIB" ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can copy/paste the result.&lt;/P&gt;
&lt;P&gt;Or you use "create table as" in the SQL and export the resulting dataset.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 10:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/462962#M29869</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-17T10:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Copy All table names from EG to another document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/462963#M29870</link>
      <description>&lt;P&gt;I moved the thread to the Enterprise Guide community.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 10:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/462963#M29870</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-17T10:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Copy All table names from EG to another document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/463022#M29873</link>
      <description>&lt;P&gt;Many thanks both, I believe both answers were great solutions.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 14:52:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/463022#M29873</guid>
      <dc:creator>bjlav90</dc:creator>
      <dc:date>2018-05-17T14:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Copy All table names from EG to another document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/463027#M29874</link>
      <description>&lt;P&gt;And for the possibly confused new SAS user looking at &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;'s and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;'s solutions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SASHELP.VTABLE is a data view and the Dictionary.tables is a special reference Proc SQL can use to look at that data view. It is the same thing, just referenced in two different manners.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And another option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc datasets library=yourlib memtype=data;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or use ODS to send the output to desired file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods rtf file="drive:\path\datasets.rtf";&lt;/P&gt;
&lt;P&gt;proc datasets library=yourlib memtype=data;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;ods close;&lt;/P&gt;
&lt;P&gt;to send the results to a word processing document at the drive and path you specify.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 14:57:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/463027#M29874</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-17T14:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Copy All table names from EG to another document</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/463216#M29888</link>
      <description>&lt;P&gt;Actually, dictionary.tables is a virtual table created at runtime (by proc sql reading the files!) that is available only in proc sql. sashelp.vtable is a SQL view of this table.&lt;/P&gt;
&lt;P&gt;Using dictionary.tables instead of sashelp.vtable can improve performance when you have a lot of libraries assigned with lots of datasets/views in them, as using it directly enables SQL to do a better optimization of the where condition. At least in my experience.&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 06:37:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-All-table-names-from-EG-to-another-document/m-p/463216#M29888</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-18T06:37:20Z</dc:date>
    </item>
  </channel>
</rss>

