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

Hi Everyone,

 

I tried to export SAS data to Excel, used file, export...

Here is the log showed:

Error: Connect: Class not registered

Error: Error in the libname statement

 

My SAS is 9.4 64 bit and Excel is 64 bit.

 

Before this, I had the same message in SAS log, when I exported to Excel 32 bit.

 

Hopefully, someone can help. Thank you.

 

Phan S.  

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Did you try DBMS=XLSX, you should include your code and log.

 

proc export data=sashelp.class outfile='/folders/myfolders/temp.xslx' dbms=xlsx replace ; run;

View solution in original post

7 REPLIES 7
Tom
Super User Tom
Super User

Not sure what why you are still having issues with using PROC EXPORT.  You probably should contact SAS support.

 

But why not just avoid the whole issue and use the XLSX engine instead?  That way you are avoiding trying to get Excel software to run at all.

libname out xlsx 'filename of excel file.xlsx';
data out.mysheet ;
  set mydataset;
run;
libname out close;
PhanS
Obsidian | Level 7

Hi Tom,

 

Thanks you. I tried with your code but it appears not work.

I just posted my comment.

 

Phan S. 

 

PhanS
Obsidian | Level 7

Hello Kurt,

 

The software has an up-to-date licence and 64 bit.

I used proc export as provided by Reeze -- it worked.

This method appears not work: File, export, library/member,...

 

Thanks you.

 

Phan S.

 

 

Reeza
Super User

Did you try DBMS=XLSX, you should include your code and log.

 

proc export data=sashelp.class outfile='/folders/myfolders/temp.xslx' dbms=xlsx replace ; run;
PhanS
Obsidian | Level 7

Hi Reeza,

 

Thanks you for your help. It worked out.

However, this method appears not work: File, export, library/Member ... 

 

Phan S.

 

 

 

ballardw
Super User

@PhanS wrote:

Hi Everyone,

 

I tried to export SAS data to Excel, used file, export...

Here is the log showed:

Error: Connect: Class not registered

Error: Error in the libname statement

 

My SAS is 9.4 64 bit and Excel is 64 bit.

 

Before this, I had the same message in SAS log, when I exported to Excel 32 bit.

 

Hopefully, someone can help. Thank you.

 

Phan S.  


Show the code and entire log for the export attempted. Sometimes you get the "class not registered" because a previous statement does not end in a semicolon and SAS is trying to treat a line of code as an option not valid on the previous line.

Since this is coupled with an "Error in the libname statement" it may be that the lines before the Libname statement is the cause.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 7 replies
  • 1279 views
  • 1 like
  • 5 in conversation