The SAS Output Delivery System and reporting techniques

Uncompressing external zipped file

Accepted Solution Solved
Reply
Contributor
Posts: 25
Accepted Solution

Uncompressing external zipped file

Hi,

I am using SAS University Edition on Mac via VirtualBox. I need to import CSV files that come packaged in a .zip file.

Is there any code I can use that will enable SAS to extract the files first so I can then import them?

Regards,


Accepted Solutions
Solution
‎04-24-2015 03:31 PM
Super User
Posts: 19,063

Re: Uncompressing external zipped file

Try the Filename ZIP method instead? See this post here that has an example of how it works:

Reading and updating ZIP files with FILENAME ZIP

http://blogs.sas.com/content/sasdummy/2014/01/29/using-filename-zip/

View solution in original post


All Replies
Valued Guide
Posts: 3,208

Re: Uncompressing external zipped file

You can use 7zip and place those files in the shared location?

---->-- ja karman --<-----
Contributor
Posts: 25

Re: Uncompressing external zipped file

Thanks for your reply. Can I use this from within SAS? I would like the whole process to be contained within a SAS program if possible.

Thanks for your time,

Solution
‎04-24-2015 03:31 PM
Super User
Posts: 19,063

Re: Uncompressing external zipped file

Try the Filename ZIP method instead? See this post here that has an example of how it works:

Reading and updating ZIP files with FILENAME ZIP

http://blogs.sas.com/content/sasdummy/2014/01/29/using-filename-zip/

Contributor
Posts: 25

Re: Uncompressing external zipped file

Excellent. Thanks.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 549 views
  • 3 likes
  • 3 in conversation