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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 6 replies
  • 1013 views
  • 4 likes
  • 5 in conversation