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 -

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

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