<?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: How to get a complete metadata report? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-get-a-complete-metadata-report/m-p/721012#M21608</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;, this is pretty much what I am looking for. It is all the tables and libraries, and the users that have access to those tables and the user that owns that table or library as let's say power user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can be a good start since I tried it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 19:47:25 GMT</pubDate>
    <dc:creator>Kal_ETL</dc:creator>
    <dc:date>2021-02-22T19:47:25Z</dc:date>
    <item>
      <title>How to get a complete metadata report?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-get-a-complete-metadata-report/m-p/720557#M21594</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was reading about dictionary tables, sashelp views and some functions to get metadata from data steps. However I am wondering if there is a way maybe by using Management Console or coding to get a report like this. I think it is possible only doing some joins but not sure how to match them by joining.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="512"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="44"&gt;Library&lt;/TD&gt;
&lt;TD width="49"&gt;Dataset&lt;/TD&gt;
&lt;TD width="75"&gt;Group Name&lt;/TD&gt;
&lt;TD width="49"&gt;Area&lt;/TD&gt;
&lt;TD width="62"&gt;Username&lt;/TD&gt;
&lt;TD width="50"&gt;user id&lt;/TD&gt;
&lt;TD width="125"&gt;email&lt;/TD&gt;
&lt;TD width="58"&gt;sas user&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;libfin&lt;/TD&gt;
&lt;TD&gt;table 1&lt;/TD&gt;
&lt;TD&gt;SAS_USERS&lt;/TD&gt;
&lt;TD&gt;Financial&lt;/TD&gt;
&lt;TD&gt;jhon doe&lt;/TD&gt;
&lt;TD&gt;x1234567&lt;/TD&gt;
&lt;TD&gt;&lt;A href="mailto:jhondoe@corp.com" target="_blank"&gt;jhondoe@corp.com&lt;/A&gt;&lt;/TD&gt;
&lt;TD&gt;psasdemo&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;libit&lt;/TD&gt;
&lt;TD&gt;table B&lt;/TD&gt;
&lt;TD&gt;SAS_ADMINS&lt;/TD&gt;
&lt;TD&gt;IT&lt;/TD&gt;
&lt;TD&gt;jane doe&lt;/TD&gt;
&lt;TD&gt;x7654321&lt;/TD&gt;
&lt;TD&gt;&lt;A href="mailto:janedoe@corp.com" target="_blank"&gt;janedoe@corp.com&lt;/A&gt;&lt;/TD&gt;
&lt;TD&gt;sasadmin&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;BR /&gt;If someone already did something like this, please advice in order to get a better idea.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 20:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-get-a-complete-metadata-report/m-p/720557#M21594</guid>
      <dc:creator>Kal_ETL</dc:creator>
      <dc:date>2021-02-19T20:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a complete metadata report?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-get-a-complete-metadata-report/m-p/720580#M21595</link>
      <description>&lt;P&gt;What you are suggesting will only be complete if all SAS data libraries are set up in SAS metadata and all SAS tables for those libraries are also registered in metadata. It is common to set up data libraries in SAS metadata but not register tables. In that case DICTIONARY tables are your only option.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please bear in mind that defining SAS libraries in metadata is not compulsory and any LIBNAMEs that are created in code will not be stored in metadata.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This post on the same topic may be helpful:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/Getting-all-libraries-from-meta-data/m-p/720444#M21576" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/Getting-all-libraries-from-meta-data/m-p/720444#M21576&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 21:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-get-a-complete-metadata-report/m-p/720580#M21595</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-02-19T21:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a complete metadata report?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-get-a-complete-metadata-report/m-p/720582#M21596</link>
      <description>&lt;P&gt;From your example it looks like you're trying to get a listing of libraries defined in Metadata and their associated datasets and then tying that to the creator, then displaying information about that creator. Is that correct?&lt;/P&gt;
&lt;P&gt;Several of these relationships are one-to-many (library to dataset, users to groups, users to emails, users to logins) this might be complicated to produce without identifying which object you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the example below for each table I look up it's associated libref, responsible party and pull that user's display name, and any login associated with DefaultAuth.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data libtab;
length type id turi luri rpuri curi uiduri duri $ 50 tblname $ 255 libref $ 8 owner dname domname uid $ 255 ;
call missing (of _character_);
keep tblname libref owner uid;
obj="PhysicalTable?@Id contains '.'";
tablecount=metadata_resolve(obj,type,id);
put "NOTE: Found " tablecount "tables.";
if tablecount &amp;gt; 0 then do i = 1 to tablecount;
 rc=metadata_getnobj(obj,i,turi);
 rc=metadata_getattr(turi,"Name",tblname);
 rc=metadata_getnasn(turi,"TablePackage",1,luri);
 rc=metadata_getattr(luri,"Libref",libref);
 rc=metadata_getnasn(turi,"ResponsibleParties",1,rpuri);
 rc=metadata_getnasn(rpuri,"Persons",1,curi);
 rc=metadata_getattr(curi,"Name",owner);
 rc=metadata_getattr(curi,"DisplayName",dname);
 if dname ne "" then owner=dname;
 logincount=metadata_getnasn(curi,"Logins",1,uiduri);
 if logincount &amp;gt; 0 then do j=1 to logincount;
  rc=metadata_getnasn(curi,"Logins",j,uiduri);
  rc=metadata_getnasn(uiduri,"Domain",1,duri);
  rc=metadata_getattr(duri,"Name",domname);
  if domname = "DefaultAuth" then do;
    rc=metadata_getattr(uiduri,"UserID",uid);
  end;
 end;
 output;
 call missing (tblname,libref,owner,uid);
end;
run;

proc print data=libtab; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 21:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-get-a-complete-metadata-report/m-p/720582#M21596</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-02-19T21:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a complete metadata report?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-get-a-complete-metadata-report/m-p/721012#M21608</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;, this is pretty much what I am looking for. It is all the tables and libraries, and the users that have access to those tables and the user that owns that table or library as let's say power user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can be a good start since I tried it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 19:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-get-a-complete-metadata-report/m-p/721012#M21608</guid>
      <dc:creator>Kal_ETL</dc:creator>
      <dc:date>2021-02-22T19:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a complete metadata report?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-get-a-complete-metadata-report/m-p/721054#M21609</link>
      <description>The code provided does not reflect permissions or multiple users. It is only the table, that tables libref, and the user assigned as the responsible party (which could be modified in SMC). If that user has a userID in the defaultauth domain, it also pulls that.</description>
      <pubDate>Mon, 22 Feb 2021 20:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-get-a-complete-metadata-report/m-p/721054#M21609</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-02-22T20:37:58Z</dc:date>
    </item>
  </channel>
</rss>

