LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2001, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 1 Jun 2001 17:07:50 -0400
Reply-To:   Abelson_R <Abelson_R@BLS.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Abelson_R <Abelson_R@BLS.GOV>
Subject:   Re: Compressing all datasets in a library - SunOS
Content-Type:   text/plain; charset="iso-8859-1"

Thank you, Jack. This worked perfectly. A slight modification so that the program will compress the current directory:

libname in "%sysget(PWD)";

proc datasets library=work kill nolist; quit;

proc copy in=in out=work mt=data; run;

options compress=yes; proc copy in=work out=in mt=data noclone; run;

If all our users run this on their SAS libraries, I think our disk usage will go from 91% full to around 60%.

My boss was trying to do something like this, but neither he nor I knew about the NOCLONE option. SAS-L is the greatest!

Bob

-----Original Message----- From: Jack Hamilton [mailto:JackHamilton@FIRSTHEALTH.COM] Sent: Friday, June 01, 2001 4:10 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Compressing all datasets in a library - SunOS

Yes, but you can do something similar with

----- proc datasets library=work kill nolist; run; quit;

proc copy in=sasuser out=work; run;

options compress=yes; proc copy in=work out=sasuser noclone; run; -----

-- JackHamilton@FirstHealth.com Development Manager, Technical Group METRICS Department, First Health West Sacramento, California USA

>>> Abelson_R <Abelson_R@BLS.GOV> 06/01/2001 12:42 PM >>> On our Unix server, we are getting dangerously low on disk space. We have deleted a lot of files, but there are a lot that we need to keep and would like to compress. I searched the SAS-L archives and found some macros that will compress all the datasets in a SAS library, but I was thinking: would it not make sense to be able to do this with PROC DATASETS?

Robert Abelson Bureau of Labor Statistics abelson_r@bls.gov "Anyone who thinks he has a better idea of what's good for people than people do is a swine." - P.J.O'Rourke


Back to: Top of message | Previous page | Main SAS-L page