SAS Procedures

Help using Base SAS procedures
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.

Hello,

 

I always have trouble starting procedures in SAS and I can never create a libname statement correctly on the first try. What i have currently is:

 libname xl XLSX "c:NidiaSAS\SASLearn\h188a.xlsx";
run;

But it gives me the errors 

ERROR: The XLSX engine cannot be found.
ERROR: Error in the LIBNAME statement.

 

I am not sure what I am doing wrong, can someone show me how to fix it so it can read my data?

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

@98ighcfdvxcghjk wrote:

Hello,

 

I always have trouble starting procedures in SAS and I can never create a libname statement correctly on the first try. What i have currently is:

 libname xl XLSX "c:NidiaSAS\SASLearn\h188a.xlsx";


How about this:

 

libname xl XLSX "c:\NidiaSAS\SASLearn\h188a.xlsx";

with a backslash after c:

--
Paige Miller

View solution in original post

3 REPLIES 3
SASJedi
Ammonite | Level 13
Please check out the solution to this problem at https://communities.sas.com/t5/SAS-Analytics-U/ERROR-XLSX-engine-cannot-be-found/m-p/567972/highligh...
If that doesn't clear it up, let me know.
Check out my Jedi SAS Tricks for SAS Users
98ighcfdvxcghjk
Calcite | Level 5

That does not help me at all, after running the code it tells me I still get the same errors. 

PaigeMiller
Diamond | Level 26

@98ighcfdvxcghjk wrote:

Hello,

 

I always have trouble starting procedures in SAS and I can never create a libname statement correctly on the first try. What i have currently is:

 libname xl XLSX "c:NidiaSAS\SASLearn\h188a.xlsx";


How about this:

 

libname xl XLSX "c:\NidiaSAS\SASLearn\h188a.xlsx";

with a backslash after c:

--
Paige Miller

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 3 replies
  • 1462 views
  • 1 like
  • 3 in conversation