BookmarkSubscribeRSS Feed
tmcrouse
Calcite | Level 5

I have SAS EG 7.1 on my machine. I have been given read access only to a shared drive. In this shared drive there are multiple folders. Within these multiple folders and multiple zipped files. I need these zipped files imported into my SAS EG which runs through a SAS Server that is Unix based. I have tried all sorts of unzipping or import codes and everything comes back stating I insufficient rights. I can move the files to my local machine and right now it is saying it will take 4 hours to move them. I have already tested the exact same code but on my local machine with one zipped and it works. I do not get the error. I believe the problem is I have read access only to this shared drive. Can anyone confirm if this is the case? If you must have write access in order to import zipped files to your SAS EG through a SAS Server.

4 REPLIES 4
RW9
Diamond | Level 26 RW9
Diamond | Level 26

SAS does not work with zipped files.  To use them I suppose your system is trying to unpack the zip - which you can't do as you only have read access.  Your best bet is to copy them locally, even if you do get write access, if it is taking 4  hours to move compressed files, imagine how long it would take to move uncompressed files.

tmcrouse
Calcite | Level 5

Thanks. RW9, what if I write a libname statement to point to the Sharedrive so I can see the zipped files in the tree and then try extracting that way. Do you think that would work? I have all these people in my org saying just write a libname statement to point to the shared drive and I have tried and it does not find the path I am putting in.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Yes, its nothing to do with a libname statement.  A libname statement sets a library pointer to a network path sure, but you will only see SAS files - datasets, catalogs, programs.  The problem lies in the fact that the files you are dealing with are Zipped - this is a proprietary binary file format which compresses other files.  These files need to be uncompressed for other applications to use them.

TomKari
Onyx | Level 15

You can definitely read .zip files, using the ZIP option of the filename statement. I've read .zip files using this. However, I can't do an experiment to see if you're prevented from reading a write-protected zip. Hopefully, someone else can.

 

Tom

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1933 views
  • 0 likes
  • 3 in conversation