Hi! I'd like to know how I can zip datasets (SAS and non-SAS) , using X command in SAS.
We only have SAS 9.1 installed, and no existing ZIP programs in our computers. I've been trying the below code, but I won't get it to work successfully.
x 'zip myzipfile.zip /file/to/zip.csv';
I've also tried a gunzip code, but it's also not working.
Thank you!
You need to have some kind of zip software installed on the machine(s) where SAS runs.
Since 9.1 is ANCIENT (and not supported on current operating systems, which means you probably run a toxic system!), I strongly recommend to immediately update to the current version. It's free with your license, and not upgrading borders on the insane.
You need to have some kind of zip software installed on the machine(s) where SAS runs.
Since 9.1 is ANCIENT (and not supported on current operating systems, which means you probably run a toxic system!), I strongly recommend to immediately update to the current version. It's free with your license, and not upgrading borders on the insane.
Thanks Kurt! I downloaded a 7-zip tool, incorporated the path of the 7-zip application in my SAS program, and was able to zip files and folder.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.