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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 1681 views
  • 0 likes
  • 2 in conversation