What are the best ways to zip SAS data sets? Below is the code that I have tried using SAS and Putty. In SAS, I did not get a log saying this was successful or not. I did get an ! exclamation point. In Putty, I also did not get any message if successful or not. What are the best and fastest ways to zip large data sets in SAS or Putty? Also, is there a way to do multiple data sets at once? Also, I think a log would be nice as well. Thank you!
SAS
LIBNAME ZIP '/server/department/analytics/data/PROJECT/';
x gzip /server/department/analytics/data/PROJECT/req1_txns1.sas7bdat;
Putty Unix
cd /server/department/analytics/data/PROJECT/
gzip req1_txns2.sas7bdat
logrotate
and perhaps actually using*(!)* that very tool – which would comb the dataset directories looking for things to compress . . . – Mike Robinsoncompress
dataset option? This can save a significant amount of space without needing to zip. Additionally, the%squeeze()
macro can reduce space even further. If it's possible to do this, I would recommend giving it a try. – Stu Sztukowski