BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
robertrao
Quartz | Level 8


Hi ,

I am trying to import a file and it throws an error.

Could you help me figure out the mistake?

Thanks

proc import datafile="C:\Data\Projects\Jun_2015\SNF1 placement detail.xlsx"
20   out=SNF_data
21   dbms=excel replace;
22   getnames=yes;
23   run;

ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.
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.21 seconds
      user cpu time       0.18 seconds
      system cpu time     0.03 seconds
      memory              319.03k
      OS Memory           9688.00k
      Timestamp           06/26/2015 11:24:23 AM
      Step Count                        5  Switch Count  0

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

Not sure why you are getting the error, but try changing the DBMS option to XLSX and avoid any attempt to use microsoft products to read the file.

View solution in original post

2 REPLIES 2
Tom
Super User Tom
Super User

Not sure why you are getting the error, but try changing the DBMS option to XLSX and avoid any attempt to use microsoft products to read the file.

robertrao
Quartz | Level 8

Thanks Tom,

I changed it to XLSX and it worked.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 463 views
  • 0 likes
  • 2 in conversation