BookmarkSubscribeRSS Feed
BrahmanandaRao
Lapis Lazuli | Level 10

Hi Guys ,

Good Morning 

 

How to get deleted datasets names information in temp library and permanent library ?

4 REPLIES 4
LinusH
Tourmaline | Level 20

SAS datasets and other SAS files are files. When deleted they're gone.

So I need a bit more context. What is your situation/requirement/use case?

Data never sleeps
BrahmanandaRao
Lapis Lazuli | Level 10

i want to know which datasets have been deleted that information 

LinusH
Tourmaline | Level 20

It all depends on your system configuration.

If you allow SAS server access only to SAS datasets, you could find this information in SAS server logs, given that you activate appropriate logging levels.

More realistic is probably to investigate if the OS that hold the data can be configured with logging of file operations.

If your requirement is keep track on such operations I think moving your data to a RDBMS is one way to solve it.

Data never sleeps
Oligolas
Barite | Level 11

Hi,

If you're looking for metadata, take a look at the dictionary tables

The information of which datasets are known to SAS at run time can be found in sashelp.vtable.

If you save the states before and after your operations in two datasets you could compare them afterwards:

data stateBefore;
   set sashelp.vtable;
run;

*[...Some operations...];

data stateAfter;
   set sashelp.vtable;
run;

proc compare base=state comp=stateAfter listall; run;

PS: sashelp.vcolumn lists the variables as well and could be of interest for you

________________________

- Cheers -

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 348 views
  • 2 likes
  • 3 in conversation