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.

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

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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
  • 4870 views
  • 7 likes
  • 5 in conversation