Zip / Unzip SAS Datasets

Deepanshu Bhalla 2 Comments

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";
Related Posts
Spread the Word!
Share
About Author:
Deepanshu Bhalla

Deepanshu founded ListenData with a simple objective - Make analytics easy to understand and follow. He has over 10 years of experience in data science. During his tenure, he worked with global clients in various domains like Banking, Insurance, Private Equity, Telecom and HR.

2 Responses to "Zip / Unzip SAS Datasets"
Next → ← Prev