<?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: Count rows from multiple tables under multiple libraries. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Count-rows-from-multiple-tables-under-multiple-libraries/m-p/876442#M346261</link>
    <description>&lt;P&gt;A library doesn't really exist in SAS,&amp;nbsp; until a libref exists that points to the library.&amp;nbsp; When you create a library reference, typically with the LIBNAME statement, it "assigns" that libref to a library.&amp;nbsp; &amp;nbsp; And correct, a library with no libref assigned to it won't be reflected in dictionary tables etc.&amp;nbsp; because it doesn't exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be possible to use SAS to scan a directory tree for all directories named like "&lt;SPAN&gt;AB_CD_%", and then look for all the SAS datasets in them.&amp;nbsp; But I don't think that's what you're looking for.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It would probably be easiest to run the code to create the library references for libraries you're interested in, then use dictionary tables to get the metadata you want.&lt;/SPAN&gt;&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>Thu, 18 May 2023 13:04:55 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2023-05-18T13:04:55Z</dc:date>
    <item>
      <title>Count rows from multiple tables under multiple libraries.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-rows-from-multiple-tables-under-multiple-libraries/m-p/876432#M346258</link>
      <description>&lt;P&gt;How to count rows from multiple tables under multiple libraries which are all not even assigned? For example if I need to count rows from all tables which are under libraries starting with "AB_CD_%" (and not all of them are assigned), how to achieve this? SAS internal metadata tables such as dictionary.tables, dictionary.libnames or sashelp.vtable hold information only about assigned libraries, right?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 12:53:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-rows-from-multiple-tables-under-multiple-libraries/m-p/876432#M346258</guid>
      <dc:creator>uzrdzer</dc:creator>
      <dc:date>2023-05-18T12:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows from multiple tables under multiple libraries.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-rows-from-multiple-tables-under-multiple-libraries/m-p/876442#M346261</link>
      <description>&lt;P&gt;A library doesn't really exist in SAS,&amp;nbsp; until a libref exists that points to the library.&amp;nbsp; When you create a library reference, typically with the LIBNAME statement, it "assigns" that libref to a library.&amp;nbsp; &amp;nbsp; And correct, a library with no libref assigned to it won't be reflected in dictionary tables etc.&amp;nbsp; because it doesn't exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be possible to use SAS to scan a directory tree for all directories named like "&lt;SPAN&gt;AB_CD_%", and then look for all the SAS datasets in them.&amp;nbsp; But I don't think that's what you're looking for.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It would probably be easiest to run the code to create the library references for libraries you're interested in, then use dictionary tables to get the metadata you want.&lt;/SPAN&gt;&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>Thu, 18 May 2023 13:04:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-rows-from-multiple-tables-under-multiple-libraries/m-p/876442#M346261</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-05-18T13:04:55Z</dc:date>
    </item>
  </channel>
</rss>

