<?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: Code to show properties of librarys in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Code-to-show-properties-of-librarys/m-p/8273#M331</link>
    <description>proc datasets library=yourLIB details ; run;</description>
    <pubDate>Tue, 01 Apr 2008 14:18:12 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-04-01T14:18:12Z</dc:date>
    <item>
      <title>Code to show properties of librarys</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Code-to-show-properties-of-librarys/m-p/8272#M330</link>
      <description>I am looking for a piece of code I can run that will show me the last time my datasets in my librarys were modified.&lt;BR /&gt;
&lt;BR /&gt;
Is this possible?</description>
      <pubDate>Tue, 01 Apr 2008 13:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Code-to-show-properties-of-librarys/m-p/8272#M330</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-01T13:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Code to show properties of librarys</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Code-to-show-properties-of-librarys/m-p/8273#M331</link>
      <description>proc datasets library=yourLIB details ; run;</description>
      <pubDate>Tue, 01 Apr 2008 14:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Code-to-show-properties-of-librarys/m-p/8273#M331</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-01T14:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Code to show properties of librarys</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Code-to-show-properties-of-librarys/m-p/8274#M332</link>
      <description>Is there a way to run this for multiple libraries or do I just have to do mutiple proc datasets statements?</description>
      <pubDate>Tue, 01 Apr 2008 14:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Code-to-show-properties-of-librarys/m-p/8274#M332</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-01T14:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Code to show properties of librarys</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Code-to-show-properties-of-librarys/m-p/8275#M333</link>
      <description>probably simpler to maintain as multiple lines.&lt;BR /&gt;
&lt;BR /&gt;
If you have a lot of these, what will youwant to do with the output?</description>
      <pubDate>Tue, 01 Apr 2008 14:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Code-to-show-properties-of-librarys/m-p/8275#M333</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-01T14:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Code to show properties of librarys</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Code-to-show-properties-of-librarys/m-p/8276#M334</link>
      <description>keeping it as an HTML is fine.  I am just trying to see if the data has been updated for the day</description>
      <pubDate>Tue, 01 Apr 2008 14:25:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Code-to-show-properties-of-librarys/m-p/8276#M334</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-01T14:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Code to show properties of librarys</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Code-to-show-properties-of-librarys/m-p/8277#M335</link>
      <description>you might prefer the selection from the environment reporting tables updated in the last, say, 3 days. That is a little different [pre]%let over = 3 ;&lt;BR /&gt;
%let since= %sysfunc( intnx( days, "&amp;amp;sysdate9"d, -3 ), date9 ) ;&lt;BR /&gt;
proc sql ;&lt;BR /&gt;
  create table recent_updates as&lt;BR /&gt;
        select *  from dictionary.tables &lt;BR /&gt;
         where  libname ne 'SASHELP' and libname ne 'WORK'&lt;BR /&gt;
            and moDate &amp;gt; "&amp;amp;since:0:0"dt &lt;BR /&gt;
      order by  moDate descending ;&lt;BR /&gt;
              ;&lt;BR /&gt;
quit;[/pre]&lt;BR /&gt;
For your environment, you may want to add other libraries from which you want no information, like SASHELP and WORK&lt;BR /&gt;
That could have produced the report direct from sql, but I feel I have more control in proc print like the following [pre]&lt;BR /&gt;
proc print data= recent_updates ; &lt;BR /&gt;
   id libname memname;&lt;BR /&gt;
  var nobs nvar modate ;&lt;BR /&gt;
run;[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Without the moDate filter, you can report all datasets.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Tue, 01 Apr 2008 14:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Code-to-show-properties-of-librarys/m-p/8277#M335</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-01T14:44:09Z</dc:date>
    </item>
  </channel>
</rss>

