BookmarkSubscribeRSS Feed
dmerom
Calcite | Level 5

I used the same codes s in SAS 9.2 to imort excel file - however it did not work

the log file had ERROR message

 

ERROR: Connect: Class not registered

ERROR: Error in the LIBNAME statement.


I don't understant what I need to do so it will work

my operating system is Window XP version 2010

9 REPLIES 9
Ksharp
Super User

Try different engine :

dbms=excel

dbms=xls

dbms=xlsx

dmerom
Calcite | Level 5

This is what I used in my code

but even if I try to import the file by locating its place on my folders it will not let me -" no connection"

I wonder why - this is no longer a cyntax problem

Ksharp
Super User

As my opinion, you have no excel engine like XLS EXCEL registered in your SAS system .therefore you can't import excel file . Contact SAS support to confirm what is your problem .

Xia Keshan

Cynthia_sas
SAS Super FREQ

Hi:

  This is a known issue. If you had searched on Tech Support  (support.sas.com) for notes, using the text of the message (Class not registered) you would have found this note that says what the fix is for the Class not registered message: 52649 - Using the IMPORT and EXPORT procedures with Microsoft Excel and Microsoft Access fails and r...

  Usually, when you get this message, it is because you have a "bitness" mismatch between SAS and Office. For example, I have 64 bit SAS on my machine, but I have 32 bit Office. That means code that used to work in SAS 9.2 (when both applications were 32 bit applications) will no longer work with 64 bit SAS and 32 bit Excel. For an excellent discussion of why you need a "helper" file like the PC File Server as the middleman to do your export, please see this blog post by Chris Hemedinger How do I export from SAS to Excel files: Let me count the ways - The SAS Dummy

  Until you install the PC File Server, your import/export will not work as it used to.

cynthia

NL
Calcite | Level 5 NL
Calcite | Level 5

Hi,

Would SAS 9.3 or 9.4 take care the "bitness" issue with the use of PC File Server?

Nelson

SASKiwi
PROC Star

Correct. But you can also cure this problem in SAS 9.3/9.4 by aligning the bitness of MS Office with SAS. For example we have 64-bit MS Office components stored on our SAS server to align with 64-bit SAS software and that avoids using the PC File Server.

If you are running SAS on the desktop only you can choose to install 32-bit SAS 9.3/9.4 to be compatible with 32-bit MS Office.

Might be also worth confirming that your SAS 9.3 has SAS/ACCESS for PC Files both installed and licensed. Use PROC SETINIT to confirm your licence.

NL
Calcite | Level 5 NL
Calcite | Level 5

This may be a bit off the topic. I have SAS 9.2 (32 bit) installed in a 64 bit OS (laptop) and have MS Office 2010 (32 bit). However, I noticed the ACCESS Connectivity Engine is missing. I tried to download and install it but still unbale to see it in Registry editor. What is the root cause? Would SAS still be able to read Excel and export to Excel?

Cynthia_sas
SAS Super FREQ

Hi:

  I do not know whether you need the Microsoft ACE engine if you have SAS/Access to PC File Formats. This would be a question for Tech Support.

cynthia

PGStats
Opal | Level 21

Read this page from the doc

SAS/ACCESS(R) 9.4 Interface to PC Files: Reference, Third Edition

for a partial answer to your question. Engine XLSX doesn't require ACE but has limited capabilities. It comes with the second maintenance release of SAS 9.4

(untested)

PG

PG

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 9 replies
  • 4290 views
  • 1 like
  • 6 in conversation