BookmarkSubscribeRSS Feed
Padma_stat
Fluorite | Level 6

 I have many excel workbooks available in one folder, I need to read 2 sheet in each excel workbook without mentioning sheet name , can any one suggest me to read that particular 2 second sheet in the workbook. 

Thanks in advance..

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

You want to read the first two sheets regardless of the name?

andreas_lds
Jade | Level 19

The problem seems to be related to https://communities.sas.com/t5/SAS-Programming/How-to-import-second-sheet-from-Excel-workbook-in-to-.... You can't import sheets without knowing their name - except for using libname-statement, but this route was excluded by yourself in the mentioned discussion. @Tom suggested a way to retrieve the names of the sheets so that the nth sheet could be read without providing the name. I don't think another way exists - or even should exist - to read sheets.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 788 views
  • 0 likes
  • 3 in conversation