Hi-,
We used the code below to import xlsx data but kept having issues. Any help.
47 proc import datafile = 'C:\Users\s160578\Desktop\NEW_COMBINED.xlsx'
48 out= Baseline
49 dbms = xlsx;
50 sheet = 'Baseline for All';
51 getnames = yes;
52 run;
ERROR: Physical file does not exist, C:\Users\s160578\Desktop\NEW_COMBINED.xlsx.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.16 seconds
cpu time 0.01 seconds
53
54 proc import datafile = 'C:\Users\s160578\Desktop\NEW_COMBINED.xlsx'
55 out= daily
56 dbms = xlsx;
57 sheet = 'Daily';
58 getnames = yes;
59 run;
ERROR: Physical file does not exist, C:\Users\s160578\Desktop\NEW_COMBINED.xlsx.
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
60
61 proc import datafile = 'C:\Users\s160578\Desktop\NEW_COMBINED.xlsx'
62 out= pupil
63 dbms = xlsx;
64 sheet = 'Pupil';
65 getnames = yes;
66 run;
ERROR: Physical file does not exist, C:\Users\s160578\Desktop\NEW_COMBINED.xlsx.
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
You are right. The path was wrong!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.