BookmarkSubscribeRSS Feed
SASPhile
Quartz | Level 8

Can SAS automatcially create datasets for each tab in an excel worksheet without giving the tab name?

Say there is a worksheet reports.xls and there are 5 tabs. so 5 datasets to be created when user gives the worksheet name.

3 REPLIES 3
Reeza
Super User
To some degree. It can generate automatic names, or names set from a variable or names from by groups. Sort of depends on how and what you're using, but in general it's possible.
SASPhile
Quartz | Level 8

a worksheet say master.xls has five sheets : credit,debit,mortgage,escrow,insuarance. Instead of giving the sheet names in a macro variable, is there a way for SAS to create 5 datasets for master.xls?

Reeza
Super User

@SASPhile wrote:

a worksheet say master.xls has five sheets : credit,debit,mortgage,escrow,insuarance. Instead of giving the sheet names in a macro variable, is there a way for SAS to create 5 datasets for master.xls?


Yes, but it depends on how your data is stored. 

You really need to add some details if you want anything beyond yes it's possible. 

 

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

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1075 views
  • 0 likes
  • 2 in conversation