BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

Hello

I have XLSX file and I want to import it using excel engine.

When I go to start and paste the path  \\path\zaad_batuah.xLSX  then I can see the XLSX file (So this path is correct).

However I get an error that the file doesn't exist

Is there anything wrong with my code?

 

 

 

libname RRR clear;
libname RRR XLSX   "\\path\LoansInfo.xLSX"; 
data    LoansInfo;
set RRR.LoansInfo;
run;

 

 

2 REPLIES 2
Oligolas
Barite | Level 11

Hi, two things:

 

1.The excel file you are trying to import needs to be closed or in a share mode.

2.The dataset you are using in the set statement 'RRR.LoansInfo' has to be a sheet in your excel file.

I.e.: If LoansInfo isn't a sheet name in your excel file it won't work.

________________________

- Cheers -

andreas_lds
Jade | Level 19

3. just because you can see the file from your computer, does not necessarily mean, that the sas-session sees it, too.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 768 views
  • 0 likes
  • 3 in conversation