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

Hi, I was unable to import an excel workbook with only one sheet into SAS 9.4.

 

I tried using the IMPORT/EXPORT option in the files and after inserting the file in the BROWSE option, I get a message, "failed. check log"

And the log says as follows.

 

ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.

 

I tried other methods as well. I tried the following codes but none of them worked

 

PROC IMPORT = "C:\Users\Arushi Arora\Desktop\data slum";
DATAFILE="filename"
<DBMS=EXCEL>
<OUT= ARUSHI.ANALYSIS>
<REPLACE>;


PROC IMPORT OUT = ANALYSIS
DATAFILE="C:\Users\Arushi Arora\Desktop\data slum\filename.xlsx"
DBMS=EXCELCS REPLACE;
RUN;

 

PROC IMPORT Datafile="C:\Users\Arushi Arora\Desktop\data slum\filename.xlsx"
DBMS=excelcs
OUT=ANALYSIS REPLACE;
Sheet="ARUSHI" ;
Run;

 

All these showed error.!!!!

HELP.

1 ACCEPTED SOLUTION

Accepted Solutions
art297
Opal | Level 21

Try dbms=xlsx

 

Of course, it and all of the ones you tried assume that you license SAS/Access for PC File formats

 

Art, CEO, AnalystFinder.com

 

View solution in original post

3 REPLIES 3
art297
Opal | Level 21

Try dbms=xlsx

 

Of course, it and all of the ones you tried assume that you license SAS/Access for PC File formats

 

Art, CEO, AnalystFinder.com

 

Kurt_Bremser
Super User

@Arushiarora0 wrote:

Hi, I was unable to import an excel workbook with only one sheet into SAS 9.4.

 

I tried using the IMPORT/EXPORT option in the files and after inserting the file in the BROWSE option, I get a message, "failed. check log"

And the log says as follows.

 

ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.


Most of the time, it's one of the two:

- ACCESS to PC Files is not licensed

- or the same was not (correctly) installed

Do

proc setinit;
run;

and post the resulting log.

Asquared
Calcite | Level 5

Thanks. The second code worked after changing the code with "xlsx"

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 5596 views
  • 0 likes
  • 3 in conversation