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

Hi,

 

I am running SAS 9.4 32 bit in pc window environment. After the windows updated to win 10, the export procedure has shown some dysfunctions: 

ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.
ERROR: Connection Failed. See log for details.

Wish help to fix this problem.

 

Thank you!

 

Herb

 

1 ACCEPTED SOLUTION
6 REPLIES 6
ballardw
Super User

@herbman wrote:

Hi,

 

I am running SAS 9.4 32 bit in pc window environment. After the windows updated to win 10, the export procedure has shown some dysfunctions: 

ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.
ERROR: Connection Failed. See log for details.

Wish help to fix this problem.

 

Thank you!

 

Herb

 


Please show the code you used.

Also is your Excel 32 or 64 bit?

herbman
Obsidian | Level 7

Hi Bakkardw,

 

Thank you.

The code for export would be most regular and it was working in window 7 environment:

 

PROC EXPORT DATA= WORK.Doset
OUTFILE= "D:\Documents\MCs\AFP.xlsx"
DBMS=EXCEL REPLACE;
SHEET="Doset";
RUN;

 

The excel is also 32 bit, but it is Office 365 version:

Microsoft Excel for Office 365 MSO 32-bit.

 

Herb

herbman
Obsidian | Level 7

Hi 

 

 

 

ballardw
Super User

Excel and to a lesser extent, probably because fewer people use it, Access have datebase engine issues.

The "bitness" of SAS, 32 or 64 and the bitness of the Microsoft install alone create 4 combinations of engines. And some just don't talk to others in the correct manner. Then which Office version can have other issues. Since Office 365 doesn't quite have the same executable presence that the older office editions did, I suspect that as another issue cause.

 

The Wizards are making some assumptions about which combinations of engines may work and apparently not matching your install. You are not the only one with that particular issue.

 

Note that the actual file formats behind XLS and XLSX are dramatically different. I don't know why any of the menus would actually include both on the same option where binary (or pseudo-binary in the case of XLSX) files are concerned. If code works, use code.

 

If you want to use wizards look at the Microsoft Excel Workbook on PC Files Server. Which goes though another window but should work if PC Files Server was installed.

herbman
Obsidian | Level 7
Hi ballardw, Thanks so much for the clarification!

Herb

sas-innovate-white.png

Missed SAS Innovate in Orlando?

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.

 

Register now

How to connect to databases in SAS Viya

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.

Discussion stats
  • 6 replies
  • 3900 views
  • 1 like
  • 2 in conversation