DATA Step, Macro, Functions and more

Last Modified Date of a SAS dataset

Reply
Frequent Contributor
Posts: 77

Last Modified Date of a SAS dataset

Is there a faster way to retrieve last modified date of a SAS dataset than using PROC CONTENTS/MODATE?
Super Contributor
Super Contributor
Posts: 3,174

Re: Last Modified Date of a SAS dataset

"Faster"? Look at SAS DICTIONARY TABLES for this type of information -- suggest searching the SAS support website.

Scott Barry
SBBWorks, Inc.

Suggested Google advanced search argument, this topic / post:

dictionary tables site:sas.com
Super User
Posts: 10,018

Re: Last Modified Date of a SAS dataset

Check out function attrn() :

[pre]
%let dsid=%sysfunc(open(sashelp.class));
%let modte=%sysfunc(attrn(&dsid,modte),datetime20.)
[/pre]


Ksharp
Ask a Question
Discussion stats
  • 2 replies
  • 5610 views
  • 1 like
  • 3 in conversation