Hello, I have been using SAS On Demand for awhile now and recently having trouble with the Proc Import process.
I get the following error, and it seems to be something odd with a double slash. Can someone please help me? I've been doing the import process in SAS On Demand for awhile and never had this problem! My file is already has already been uploaded to the SAS On Demand online system.
I figured it out! It was because the spreadsheet was password protected!
Find the file under Servers Folders and Files, right click it and select properties. Copy the path from the file to the your code and see if that works. If it doesn't, please show a screenshot of the properties pane.
@Agollenb wrote:
Hello, I have been using SAS On Demand for awhile now and recently having trouble with the Proc Import process.
I get the following error, and it seems to be something odd with a double slash. Can someone please help me? I've been doing the import process in SAS On Demand for awhile and never had this problem! My file is already has already been uploaded to the SAS On Demand online system.
OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;6869 /* Generated Code (IMPORT) */70 /* Source File: CLEAN.3Month.InfantDrivenFeeding3M.DATA_2022.Final.xlsx */71 /* Source Path: /home/agollenb0 */72 /* Code generated on: 9/15/22, 10:02 AM */7374 %web_drop_table(WORK.IMPORT);757677 FILENAME REFFILE '/home/agollenb0/CLEAN.3Month.InfantDrivenFeeding3M.DATA_2022.Final.xlsx';7879 PROC IMPORT DATAFILE=REFFILE80 DBMS=XLSX81 OUT=WORK.IMPORT;82 GETNAMES=YES;83 RUN;ERROR: Physical file does not exist, /home/agollenb0//CLEAN.3Month.InfantDrivenFeeding3M.DATA_2022.Final.NOTE: The SAS System stopped processing this step because of errors.
Here is the screenshot. I believe the path is correct. Still showing errors. I also tried in Chrome.
You didn't do the copy/paste...your picture shows a folder MT2 but that's not in your path before the file name.
@Agollenb wrote:
Here is the screenshot. I believe the path is correct. Still showing errors. I also tried in Chrome.
I used the auto generated proc import. I verified the path.
Post the error from that last screenshot to confirm it's the same error as your original post.
Please also note that your screenshot does not show the path included in your first post.
Here is the error output: I can't figure out why there is an extra slash in the error code.
I tried renaming the file. And it still doesn't work. I'm sorry for the trouble, I have a big deadline and cannot figure out why my data will not import.
None of the code or errors posted match your screenshots.
Post the log from teh following but I can't be sure that the file name is correct because it's cut off in your shots. Note that the file paths are case sensitive which is why I'm saying to copy/paste the filepath from the properties.
FILENAME REFFILE '/home/agollenb0/MT2/CLEAN.3Month.InfantDrivenFeeding3M.DATA_2022.Final.xlsx';
PROC IMPORT DATAFILE=REFFILE
DBMS=XLSX
OUT=WORK.IMPORT;
GETNAMES=YES;
RUN;
I figured it out! It was because the spreadsheet was password protected!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Ready to level-up your skills? Choose your own adventure.