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

Hi:
Different engines required different reference methods for worksheets. The named literal method that you originally tried is NOT needed with the XLSX engine, but was used with other engines. Once you issue your LIBNAME statement, like this:
libname carinfo xlsx '/folders/myfolders/auto.xlsx';

You can always find out the correct sheet names to use by doing this:
proc contents data=carinfo._all_ nods;
title 'What are sheet names';
run;
title;

Use the name form that you see in the list of tables in the PROC CONTENTS output. My guess is that if you run PROC CONTENTS on your workbook, you will see AUTO listed as a table without the " 'n" named literal form.

Cynthia

jkl123
Obsidian | Level 7
Hello, Cynthia,

Yes, you are correct. I tried and the spreadsheet name just showed up.
Thanks a million.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 16 replies
  • 4526 views
  • 7 likes
  • 5 in conversation