<?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 How can I test when a dataset is modified/created in a program in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/563974#M17323</link>
    <description>&lt;P&gt;Hi. I'm having several Stored Procedures that I use to update/create tables that users can correct numbers and add lines. When I create the I just want to make a screen saying that the data set has been updated. I can get when the dataset information as dates, path, observations in the printed output from proc contents. However I have not found a way to get this in a dataset so I can test the date against current clock time and make a nice message saying updated successfully. The out statement only give the variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have a nice trick for this?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2019 06:34:32 GMT</pubDate>
    <dc:creator>PaalNavestad</dc:creator>
    <dc:date>2019-06-06T06:34:32Z</dc:date>
    <item>
      <title>How can I test when a dataset is modified/created in a program</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/563974#M17323</link>
      <description>&lt;P&gt;Hi. I'm having several Stored Procedures that I use to update/create tables that users can correct numbers and add lines. When I create the I just want to make a screen saying that the data set has been updated. I can get when the dataset information as dates, path, observations in the printed output from proc contents. However I have not found a way to get this in a dataset so I can test the date against current clock time and make a nice message saying updated successfully. The out statement only give the variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have a nice trick for this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 06:34:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/563974#M17323</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2019-06-06T06:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I test when a dataset is modified/created in a program</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/563984#M17324</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
  create table updated as
    select *
    from dictionary.tables
    where libname = 'SASHELP'
      and memname = 'CLASS' ;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Column&amp;nbsp;&lt;STRONG&gt;modate&lt;/STRONG&gt; will contain a datetime value showing the date and time the table was modified.&lt;/P&gt;
&lt;P&gt;Note remember that libname is always in upper case in dictionary and that memname is in mixed case, you may want to surround both memname and your tablename with the upcase function to ensure a match.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 07:26:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/563984#M17324</guid>
      <dc:creator>MichaelLarsen</dc:creator>
      <dc:date>2019-06-06T07:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I test when a dataset is modified/created in a program</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/563991#M17325</link>
      <description>&lt;P&gt;Just to show how this works in practice:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table class as select * from sashelp.class;
select modate
from dictionary.tables
where libname = 'WORK'
and memname = 'CLASS';
quit;

%let wait=%sysfunc(sleep(1,1));

proc sql;
create table class as select * from sashelp.class;
select modate
from dictionary.tables
where libname = 'WORK'
and memname = 'CLASS';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;   Date Modified
----------------
06JUN19:10:22:35
                

   Date Modified
----------------
06JUN19:10:22:36
&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Jun 2019 08:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/563991#M17325</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-06T08:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I test when a dataset is modified/created in a program</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/563992#M17326</link>
      <description>&lt;P&gt;Thanks a million. I did not think about dictonary.tables. Shame on me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 08:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/563992#M17326</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2019-06-06T08:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I test when a dataset is modified/created in a program</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/563996#M17327</link>
      <description>&lt;P&gt;Thanks, works like a dream&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 09:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/563996#M17327</guid>
      <dc:creator>PaalNavestad</dc:creator>
      <dc:date>2019-06-06T09:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I test when a dataset is modified/created in a program</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/748024#M19993</link>
      <description>&lt;P&gt;How to get created date/time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pdhokriya_0-1623734138036.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60389i0916F630AE9C84B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pdhokriya_0-1623734138036.png" alt="pdhokriya_0-1623734138036.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 05:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/748024#M19993</guid>
      <dc:creator>pdhokriya</dc:creator>
      <dc:date>2021-06-15T05:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I test when a dataset is modified/created in a program</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/748039#M19994</link>
      <description>&lt;P&gt;It is also in DICTIONARY.TABLES, right next to MODATE.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 06:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-can-I-test-when-a-dataset-is-modified-created-in-a-program/m-p/748039#M19994</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-15T06:42:00Z</dc:date>
    </item>
  </channel>
</rss>

