BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
utrocketeng
Quartz | Level 8

Is it possible to write a LIBNAME statement for an excel file in EG without locking it?  i just want to read in contents of the excel file; not lock it for read/write purpose. 

Proc Import is no longer an option as my environment is migrating from Windows to Linus.  I've read several posts about LibName locking files excel files, but i had not seen anyone ask if there was a option in the Libname statement to prevent the lock in the first place.

 

1 ACCEPTED SOLUTION
5 REPLIES 5
utrocketeng
Quartz | Level 8

that currently is my plan...  thank you for the confirmation!

Reeza
Super User

You can also check the ACCESS=READONLY option:

 

libname census xlsx "path to file" access=readonly;
utrocketeng
Quartz | Level 8
I will try that tomorrow. Thank you.
utrocketeng
Quartz | Level 8

Reeza, i tried the 'access=readonly'; and the excel file was still locked.  i really do not care for excel.  😕

 

thank you again for the feedback!

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