BookmarkSubscribeRSS Feed
Padma_stat
Calcite | Level 5

 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.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of 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
  • 495 views
  • 0 likes
  • 3 in conversation