<?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 owner of each dataset in a library in an output table in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562377#M74942</link>
    <description>Operating inside of a virtual environment set up by CMS, which is running 7, unfortuanlty they limit our permissions to do basically anything useful, so it has to be limited to stuff I can query in SAS EG, and they have also disabled x commands so I can't go that route</description>
    <pubDate>Wed, 29 May 2019 18:02:28 GMT</pubDate>
    <dc:creator>cfrey73</dc:creator>
    <dc:date>2019-05-29T18:02:28Z</dc:date>
    <item>
      <title>How to get owner of each dataset in a library in an output table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562238#M74925</link>
      <description>&lt;P&gt;I am looking to grab the owner of each table in a shared library and output the table and owner into a dataset so that we can use it to audit. I have looked into the proc contents procedure, which looks like it can get you the owner, but I don't see any way to get that into a table using either the out or out2 statements. Any help would be useful&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data = lib._ALL_ memtype=data out=out_data; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 12:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562238#M74925</guid>
      <dc:creator>cfrey73</dc:creator>
      <dc:date>2019-05-29T12:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get owner of each dataset in a library in an output table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562241#M74926</link>
      <description>&lt;P&gt;Using ODS TRACE, you can find the table names of the output you see in the ODS destination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods trace on;

LOG: 

Output Added:
-------------
Name:       Directory
Label:      Directory Information
Template:   Base.Datasets.Directory
Path:       Contents.Directory&lt;/PRE&gt;
&lt;P&gt;From this, you can use ODS OUTPUT to add this table to your output data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output directory=withowner;
proc contents data = sashelp._ALL_ memtype=data out=out_data; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The WITHOWNER table will contain what you need.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 12:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562241#M74926</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-05-29T12:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get owner of each dataset in a library in an output table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562260#M74927</link>
      <description>&lt;P&gt;Thanks, it looks like this gives the owner of the directory, is there another command to get the owner/creator&amp;nbsp; of each individual dataset within the directory, or even just to get a single table and I could write a loop over the directory.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 13:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562260#M74927</guid>
      <dc:creator>cfrey73</dc:creator>
      <dc:date>2019-05-29T13:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get owner of each dataset in a library in an output table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562341#M74937</link>
      <description>Check out SASHELP.VTABLE?</description>
      <pubDate>Wed, 29 May 2019 16:28:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562341#M74937</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-29T16:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get owner of each dataset in a library in an output table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562346#M74938</link>
      <description>I checked there, didn't see anything about who created the table</description>
      <pubDate>Wed, 29 May 2019 16:49:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562346#M74938</guid>
      <dc:creator>cfrey73</dc:creator>
      <dc:date>2019-05-29T16:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get owner of each dataset in a library in an output table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562359#M74939</link>
      <description>&lt;P&gt;I'm not sure that Owner is always the same as "who created it", but if you need the OS owner field for each table you could try this with PROC DATASETS -- using the same ODS TRACE/OUTPUT technique.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods trace on;
ods output EngineHost=WithOwner;
proc datasets lib=sashelp;
 contents data=_ALL_;
quit;

data WithOwner;
 set WithOwner (where=(label1 in ('Filename' 'Owner Name')));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 17:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562359#M74939</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-05-29T17:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get owner of each dataset in a library in an output table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562368#M74941</link>
      <description>What's your OS?&lt;BR /&gt;You can use FINFO functions but if you have XCMD enabled you can also query it from the OS commands</description>
      <pubDate>Wed, 29 May 2019 17:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562368#M74941</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-29T17:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get owner of each dataset in a library in an output table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562377#M74942</link>
      <description>Operating inside of a virtual environment set up by CMS, which is running 7, unfortuanlty they limit our permissions to do basically anything useful, so it has to be limited to stuff I can query in SAS EG, and they have also disabled x commands so I can't go that route</description>
      <pubDate>Wed, 29 May 2019 18:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562377#M74942</guid>
      <dc:creator>cfrey73</dc:creator>
      <dc:date>2019-05-29T18:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get owner of each dataset in a library in an output table</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562380#M74944</link>
      <description>thanks chris! your solution was exactly what I was looking for.</description>
      <pubDate>Wed, 29 May 2019 18:10:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-owner-of-each-dataset-in-a-library-in-an-output-table/m-p/562380#M74944</guid>
      <dc:creator>cfrey73</dc:creator>
      <dc:date>2019-05-29T18:10:51Z</dc:date>
    </item>
  </channel>
</rss>

