DATA Step, Macro, Functions and more

SAS dataset size on LINUX is not changing after deleting rows

Reply
Frequent Contributor
Posts: 90

SAS dataset size on LINUX is not changing after deleting rows

I have 100GB SAS dataset on LINUX. Space allocated for the dataset after deleting 50 GB data from the dataset is still 100 GB. I'm not sure if this is related to SAS or LINUX.

The below code is performing the delete:

Proc SQL; Delete * from dataset where Column=value; Quit;

 

 

i have tried below Query also but again Size of dataset is still same .

QUERY :-

LIBNAME LIBNAME '';

 Data LIBANME.DATASET NAME ;

 MODIFY LIBANME.DATASET NAME;

 IF condition then remove ;

 Run ;

Super User
Posts: 6,939

Re: SAS dataset size on LINUX is not changing after deleting rows

Here's some insight:

 

http://support.sas.com/kb/32/042.html

 

 

Super User
Posts: 10,623

Re: SAS dataset size on LINUX is not changing after deleting rows

To reduce the physical dataset size, do this:

Data LIBANME.DATASET NAME ;
set LIBANME.DATASET NAME;
IF not (condition);
Run ;
---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Ask a Question
Discussion stats
  • 2 replies
  • 92 views
  • 0 likes
  • 3 in conversation