I am using SAS University Edition. I tried to using below statment to access excel file
libname prod xlsx "/folders/myfolders/SAS/book1.xlsx";
Actually there is no error in log. But I can only see the prod libref is created but there is no way to access the data in the Excel file.
I attach the book1 file, from sheet2 you can see the result from proc contents, there is connection, but can't read data.
Try PROC IMPORT as described here:
Import is working. But I feel it works more like input, create new dataset. Not like libname create a link to file.
How did you try and 'read' the file. Did that generate an error? Include your code and log.
Did you try accessing the data with a data step? Post that code
No, I can't. After I use libname, there have libref created, but it empty, there is no data.
How do you know it's empty?
Did you try a data step?
Data want;
set libname.'Sheet1$'n;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.