DATA Step, Macro, Functions and more

Zipping a folder in SAS.

Reply
Occasional Contributor
Posts: 13

Zipping a folder in SAS.

Hello,

 

I have a Main folder which contain lot of files and folder . I am using SAS 9.3  How can i Zip the Main folder . ? Please let me know any inputs.

 

Regards,

Gokul Shivananda

Respected Advisor
Posts: 3,156

Re: Zipping a folder in SAS.

Posted in reply to GokulShivananda
Occasional Contributor
Posts: 13

Re: Zipping a folder in SAS.

Thank you.

Super User
Posts: 7,809

Re: Zipping a folder in SAS.

Posted in reply to GokulShivananda

If your SAS runs on UNIX, this may do the trick:

X "cd /path/main;zip -R main '*'";

Which will give you a file main.zip in your "main" folder that contains everything in all subfolders.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 13

Re: Zipping a folder in SAS.

Posted in reply to KurtBremser
Yes Sas runs on unix.
Thanks a lot.
Ask a Question
Discussion stats
  • 4 replies
  • 229 views
  • 1 like
  • 3 in conversation