<?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: can we extract modified date of sas dataset using proc contents in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/can-we-extract-modified-date-of-sas-dataset-using-proc-contents/m-p/399422#M96738</link>
    <description>&lt;P&gt;You can get the date of the last modification by writing the Proc Contents output to a data set like so&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
	set sashelp.class;
run;

proc contents data=class out=contents;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The modification date is then held in a datetime variable called MODATE and you can access the date portion of that with the DATEPART function using data step, proc SQL etc.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2017 07:42:10 GMT</pubDate>
    <dc:creator>ChrisBrooks</dc:creator>
    <dc:date>2017-09-28T07:42:10Z</dc:date>
    <item>
      <title>can we extract modified date of sas dataset using proc contents</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-we-extract-modified-date-of-sas-dataset-using-proc-contents/m-p/399418#M96736</link>
      <description>&lt;P&gt;I want to extract modified date of a dataset using proc contents.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any example or suggestion please&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 07:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-we-extract-modified-date-of-sas-dataset-using-proc-contents/m-p/399418#M96736</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2017-09-28T07:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: can we extract modified date of sas dataset using proc contents</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-we-extract-modified-date-of-sas-dataset-using-proc-contents/m-p/399422#M96738</link>
      <description>&lt;P&gt;You can get the date of the last modification by writing the Proc Contents output to a data set like so&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
	set sashelp.class;
run;

proc contents data=class out=contents;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The modification date is then held in a datetime variable called MODATE and you can access the date portion of that with the DATEPART function using data step, proc SQL etc.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 07:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-we-extract-modified-date-of-sas-dataset-using-proc-contents/m-p/399422#M96738</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-09-28T07:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: can we extract modified date of sas dataset using proc contents</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-we-extract-modified-date-of-sas-dataset-using-proc-contents/m-p/399423#M96739</link>
      <description>&lt;P&gt;It is easier to retrieve that from dictionary.tables:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table test as select * from dictionary.tables where libname='SASHELP' and memname = 'CLASS';
create table test2 as select modate from dictionary.tables where libname='WORK' and memname = 'TEST';
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Sep 2017 07:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-we-extract-modified-date-of-sas-dataset-using-proc-contents/m-p/399423#M96739</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-09-28T07:42:30Z</dc:date>
    </item>
  </channel>
</rss>

