BookmarkSubscribeRSS Feed
ankitk321
Fluorite | Level 6

Hi All,

 

I want to create a Zip file using a sas code and want to move all the dataset available in a particular location or library into a zip file and then delete all the dataset outside the zipfile using SAS studio.

 

If any one have any code for the same kindly help me. We are running the code on Linux server(If this information help).

 

It will be a great help.

 

Regards

Ankit

3 REPLIES 3
ankitk321
Fluorite | Level 6

Hi,

 

Thanks for the information you have shared.By using the 1st link we can make zip file only for one CSV. But I want to create zip file for more than 50 SAS dataset number can increase. If you can suggest an alternative or share any other code it will be a great help.

 

Regards

Ankit

RW9
Diamond | Level 26 RW9
Diamond | Level 26

All you do is add more addfile statements to add more files:

ods package(ProdOutput) add file='...';

You can add as many as you want.

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
  • 3 replies
  • 1852 views
  • 0 likes
  • 2 in conversation