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..
You want to read the first two sheets regardless of the name?
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.
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!
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.