<?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 Macro to extract all the datasets  in all Libraries other than sashelp in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-extract-all-the-datasets-in-all-Libraries-other-than/m-p/749771#M235689</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am trying to extract some of the Libraries and all their datasets&amp;nbsp; by the following query.&lt;/P&gt;&lt;P&gt;I ran this query in EG and can see only few libraries are listed , but when I check in SAS DI there are so many libraries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get all those libraries that I see in SAS DI and I need to write that Macro so that I can enter required lib name in the Macro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc SQL;&lt;BR /&gt;select&lt;BR /&gt;*&lt;BR /&gt;from&lt;BR /&gt;dictionary.members where libname in ('...')&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vicks&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 02:16:31 GMT</pubDate>
    <dc:creator>vickys</dc:creator>
    <dc:date>2021-06-23T02:16:31Z</dc:date>
    <item>
      <title>Macro to extract all the datasets  in all Libraries other than sashelp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-extract-all-the-datasets-in-all-Libraries-other-than/m-p/749771#M235689</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am trying to extract some of the Libraries and all their datasets&amp;nbsp; by the following query.&lt;/P&gt;&lt;P&gt;I ran this query in EG and can see only few libraries are listed , but when I check in SAS DI there are so many libraries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get all those libraries that I see in SAS DI and I need to write that Macro so that I can enter required lib name in the Macro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc SQL;&lt;BR /&gt;select&lt;BR /&gt;*&lt;BR /&gt;from&lt;BR /&gt;dictionary.members where libname in ('...')&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vicks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 02:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-extract-all-the-datasets-in-all-Libraries-other-than/m-p/749771#M235689</guid>
      <dc:creator>vickys</dc:creator>
      <dc:date>2021-06-23T02:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to extract all the datasets  in all Libraries other than sashelp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-extract-all-the-datasets-in-all-Libraries-other-than/m-p/749773#M235690</link>
      <description>&lt;P&gt;Generally speaking, a Libname has to be allocated in your SAS session for you to know what datasets are in the library.&amp;nbsp; I'm not familiar with DI, but somewhere there has to be a mechanism for DI to allocate the libraries that you're seeing.&amp;nbsp; It may be a config file.&amp;nbsp; I would talk to your DI administrator and ask about such a config file.&amp;nbsp; If you can then format that config file such that it has valid SAS statements, then you can save the results in a text file with a .sas ending.&amp;nbsp; You would then %INCLUDE that file into a program in EG or you can set up EG have code run automatically whenever you open an EG session.&amp;nbsp; When the %INCLUDE brings in the code, all those Libnames will be available to your EG session, and then you can query against the dictionary tables to your heart's content.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 03:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-extract-all-the-datasets-in-all-Libraries-other-than/m-p/749773#M235690</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-06-23T03:07:58Z</dc:date>
    </item>
  </channel>
</rss>

