BookmarkSubscribeRSS Feed
Sandyliu
Calcite | Level 5

Hi all !

 

To classify data sets in all the libraries are in use or not,

I'm finding a way to retrieve information of data sets, such as created date, last modified date,last user  etc.

I found some related information is displayed in properties of data sets(refer to attached file),

and how can I export that information into a data set?

PROPERTIES.PNG

 

 

 

6 REPLIES 6
Kurt_Bremser
Super User

This information is internal to the Enterprise Guide project, and cannot be made visible to the SAS workspace server.

 

Most (if not all) of the other information is available through dictionary.tables and dictionary.columns in proc sql.

Sandyliu
Calcite | Level 5

Thanks @Kurt_Bremser !

 

May I understand it like that the information in dictionary.tables and dictionary.columns is all the visible property data of data sets to the sas workspace server? 

Kurt_Bremser
Super User

@Sandyliu wrote:

Thanks @Kurt_Bremser !

 

May I understand it like that the information in dictionary.tables and dictionary.columns is all the visible property data of data sets to the sas workspace server? 


One can retrieve additional properties (eg last accessed) by using external commands, if XCMD is enabled.

And proc contents does show additional things in the output (when run on UNIX), like file owner, permissions and inode number.

FredrikE
Rhodochrosite | Level 12

Hi!

The procedutre "proc contents" with the option "out=" writes properties to a data set, will that help you?

//Fredrik

Sandyliu
Calcite | Level 5

Thanks @FredrikE !

 

It's a simple way to export properties of data sets.(I think it is the same data as those in dictionary.tables and dictionary.columns)

However, I'm afraid that those data are not enough to help me tell which data set is in use or not.

 

FredrikE
Rhodochrosite | Level 12

What do you mean with "in use".

 

In unix you can use the function FUSER on a sasbdat-file to see if it is locked, if that is what you want...:)

 

//Fredrik

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 4510 views
  • 0 likes
  • 3 in conversation