I am trying to import a file into SAS. This is an excel file and I believe my problem is in my filename path, but I do not know how to correct this. Can anyone help me? I am going to copy and paste my code and error message.
PROC IMPORT OUT= WORK.B6
DATAFILE= "C:\Users\yakit\OneDrive\Documents\STAT 672 DATA SETS\Data Set B6.xlsx"
DBMS=xlsx REPLACE;
GETNAMES=YES;
DATAROW=2;
RUN;
Here is my error message:
better yet, save your table as a "csv" (comma delimited) file in excel and import it to sas. It works fine.
Your issue is the path. You're trying to access your local data but it appears SAS is running on a server.
You can likely use the GUI tools to import or you need to move your file to the server. Or you need to explain your set up in more detail and we can offer alternatives.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.