This code worked fine until recently:
proc import datafile="G:fakepath\&year.\Preliminary\3701_Prelim_Score_Roster - 14JAN19.xls"
out=eoc dbms=excelcs replace;
run;
Now, I get this error:
ERROR: Failed to connect to the Server: .
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.10 seconds
cpu time 0.03 seconds
I wondered if my latest SAS renewal was the issue. Here's what I'm running on a Windows 64bit desktop:
Product(s) Ordered | Expiration Date | |
SAS Analytics Pro, including the products: | ||
• Base SAS | November 29, 2020 | |
• SAS/GRAPH | November 29, 2020 | |
• SAS/STAT | November 29, 2020 | |
SAS Enterprise Guide | November 29, 2020 | |
SAS/ACCESS Interface to ODBC | October 30, 2019 | |
SAS/ACCESS Interface to PC Files | November 29, 2020 |
Hello,
Is your running-code environment weel-connected to your local windows? Are you working with SAS Studio or SAS EG?
Regards,
JD
I'm running Base SAS 9.4
I changed my code to dbms=excel and got a different error.
ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.
ERROR: Connection Failed. See log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.20 seconds
cpu time 0.07 seconds
Why not try using DBMS=XLS and avoid trying to depend on getting SAS to talk to Windows/Microsoft code?
When I do that it reads column 1 only (in a weird fashion) like so:
should have:
3701551
instead:
3 7 0 1
What is producing the XLS file? Are they really old? If not then perhaps your process can produce the more modern (and better documented) XLSX format instead?
the xls file comes from an outside vendor. not sure why they won't switch over to xlsx format
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!
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.