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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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