This post explains how to zip or unzip SAS data sets.
1. Zip SAS Dataset with GZIP
The following code uses the gzip command from gzip tool to compress the SAS file "crime.sas7bdat" located in the specified directory. Make sure you have the permissions to access the file.
systask command "gzip 'C:\Users\Deepanshu\Downloads\crime.sas7bdat'" wait taskname=zip status=check shell;
2. Unzip/Uncompress .Z Extension SAS File
The following code unzips a file named "crime.sas7bdat.Z".
systask command "uncompress C:\Users\Deepanshu\Downloads\crime.sas7bdat.Z";
Nicely Explained
ReplyDeleteYea! I've been Googling all day for this! Thanks.
ReplyDelete