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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 695 views
  • 0 likes
  • 2 in conversation