BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
angeliquec
Quartz | Level 8

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

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.

View solution in original post

2 REPLIES 2
Kurt_Bremser
Super User

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.

angeliquec
Quartz | Level 8

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.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 821 views
  • 0 likes
  • 2 in conversation