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

I have a program that has to read an Excel file from a server for some data. I want to write a program that will run un-attended every day. I can write such a program and it all works properly, except on those days when the program runs and some other user has the Excel file open. PROC IMPORT does not seem to work. Nor does copying the file to my local hard disk (and then I know no one has it open) because my SAS code using FCOPY() won't copy the file when some other user has the Excel file open. So, how can I either IMPORT or COPY an Excel file that another user has open?

--
Paige Miller
1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
Can you use x command and do a system copy instead? It may work when an xcopy failed.

View solution in original post

6 REPLIES 6
ballardw
Super User

Would it be possible to get a duplicate file made elsewhere by the creation process where you have access, best that no one else has access?

PaigeMiller
Diamond | Level 26

I don't want to re-engineer the process. I want to use the data set on the server.

--
Paige Miller
PaigeMiller
Diamond | Level 26

My bad, I should have mentioned that we run on Windows, there is no such option on Windows. Any other ideas?

--
Paige Miller
Reeza
Super User
Can you use x command and do a system copy instead? It may work when an xcopy failed.
smantha
Lapis Lazuli | Level 10

You are talking about stuff that system admins have nightmares handling on windows. A user can inadvertently permanently lock an excel file.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 6 replies
  • 769 views
  • 4 likes
  • 5 in conversation