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!
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
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.