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

this is my program, I tried all sorts of things, and now it says the file does not exist, but it does....


107 PROC IMPORT DATAFILE="C:\Users\Shula\Documents\Yaffa
107! Rose.PAP_done_undup2.xlsx"
108 DBMS=xlsx
109 OUT=YR_papdone REPLACE;
110 SHEET='papdone';
111 RUN;

ERROR: Physical file does not exist, C:\Users\Shula\Documents\Yaffa
Rose.PAP_done_undup2.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds

 

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

Can you mark the post as answered then please?

View solution in original post

8 REPLIES 8
Reeza
Super User
Are you using SAS on a server or a different type of installation that may not have access to your C drive?
sminsky
Calcite | Level 5
I am using my own personal computer.
SASKiwi
PROC Star

What SAS interface are you using? SAS Windowing Environment, Enterprise Guide or SAS Studio? If it is EG, do you use a local or remote SAS server?

Kurt_Bremser
Super User

When SAS tells you a file is not there, then the file is not there, period.

If SAS runs on a remote server, it cannot see your local c: drive.

Reeza
Super User

If you find the file in Windows, hold down SHIFT+CTRL and right click the file. Select Copy as Path. 

Post that path into your PROC IMPORT statement.

 

Should that period be a slash?

 

C:\Users\Shula\Documents\Yaffa Rose.PAP_done_undup2.xlsx

@sminsky wrote:

this is my program, I tried all sorts of things, and now it says the file does not exist, but it does....


107 PROC IMPORT DATAFILE="C:\Users\Shula\Documents\Yaffa
107! Rose.PAP_done_undup2.xlsx"
108 DBMS=xlsx
109 OUT=YR_papdone REPLACE;
110 SHEET='papdone';
111 RUN;

ERROR: Physical file does not exist, C:\Users\Shula\Documents\Yaffa
Rose.PAP_done_undup2.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds

 


 

sminsky
Calcite | Level 5
Thanks all. there were several errors. one was the missing slash, another
was that SAS did not want the suffix (sas7dat) \. it finally worked.
SASKiwi
PROC Star

Can you mark the post as answered then please?

sminsky
Calcite | Level 5
I don't know how to do this. This was my first connection with the site...
sorry.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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