<?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: Retrieve table metadata info for a given library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885500#M349910</link>
    <description>Thanks Reeza but the sashelp.vtable and sashelp.vcolum (and associated dictionaries) do not contain SAS metadata info.&amp;nbsp;</description>
    <pubDate>Wed, 19 Jul 2023 17:21:27 GMT</pubDate>
    <dc:creator>figureItOut</dc:creator>
    <dc:date>2023-07-19T17:21:27Z</dc:date>
    <item>
      <title>Retrieve table metadata info for a given library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885485#M349901</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I found some SAS code that retrieves all of the libraries and some of their associated SAS metadata.&amp;nbsp; I would like to expand this code to retrieve each library's table metadata.&amp;nbsp; It seems like for each library a loop is needed to find the number of tables in the library, then for each table retrieve the description, the folder and so forth.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 16:15:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885485#M349901</guid>
      <dc:creator>figureItOut</dc:creator>
      <dc:date>2023-07-19T16:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve table metadata info for a given library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885486#M349902</link>
      <description>Quick check  - you've looked at sashelp.vtable and sashelp.vcolumn views?</description>
      <pubDate>Wed, 19 Jul 2023 16:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885486#M349902</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-07-19T16:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve table metadata info for a given library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885488#M349904</link>
      <description>&lt;P&gt;JOIN between the appropriate tables should work in SQL instead of looping.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One question is which "table metadata" that you want.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 16:43:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885488#M349904</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-07-19T16:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve table metadata info for a given library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885500#M349910</link>
      <description>Thanks Reeza but the sashelp.vtable and sashelp.vcolum (and associated dictionaries) do not contain SAS metadata info.&amp;nbsp;</description>
      <pubDate>Wed, 19 Jul 2023 17:21:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885500#M349910</guid>
      <dc:creator>figureItOut</dc:creator>
      <dc:date>2023-07-19T17:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve table metadata info for a given library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885505#M349913</link>
      <description>&lt;P&gt;The table metadata I want, to start with, is the Name, Description, Location, and actual physical table name.&amp;nbsp; As shown in SAS Management Console.&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CommunitiesPost1a.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85924i8C24671ADD9C04AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="CommunitiesPost1a.png" alt="CommunitiesPost1a.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CommunitiesPost1b.png" style="width: 287px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85925i422245F187BAA8BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="CommunitiesPost1b.png" alt="CommunitiesPost1b.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 17:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885505#M349913</guid>
      <dc:creator>figureItOut</dc:creator>
      <dc:date>2023-07-19T17:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve table metadata info for a given library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885525#M349924</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  create table Tables as
  select  T.libname
         ,T.memname
         ,T.memlabel
		 ,L.path
		 ,L.sysdesc
  from dictionary.tables as T,
       dictionary.libnames as L
  where upcase(memname) = 'ODSSTYLE'
  and T.libname = 'STPSAMP' 
  and T.libname = L.libname
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jul 2023 22:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885525#M349924</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-07-19T22:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve table metadata info for a given library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885554#M349941</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe the code and screenshot the OP shared makes it obvious that this is about querying SAS metadata and SAS Metadata Tables and not the SAS dictionary.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446113"&gt;@figureItOut&lt;/a&gt;&amp;nbsp;: Yes, you would need to implement some sort of loop logic per metadata library definition. I haven't checked but would assume tables are associations for libraries.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I normally use the SAS Windows Manager and then metabrowse to figure out how things "hang together" in SAS Metadata.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 03:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-table-metadata-info-for-a-given-library/m-p/885554#M349941</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-07-20T03:19:24Z</dc:date>
    </item>
  </channel>
</rss>

