BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

Hello

I know how to use excel engine to export multiple SAS data sets into excel file that contain multiple sheets (one table in each sheet).

 

My question is how to export multiple sas data sets into only one excel sheet (tables will be one below other )

For example:

I want to export 2 sas data sets: SASHELP.CARS  and  SASHELP.CLASS

 into one excel Sheet called "raw_tables"  (Excel file name will be called "example")

 

 

 

2 REPLIES 2
Ronein
Onyx | Level 15

My SAS version is 

26 %put I am using release: &sysvlong;
I am using release: 9.04.01M4P110916

 

Kurt_Bremser
Super User

This has already been asked by you several times now, and the answer is still the same: use ODS EXCEL.

 

https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/607963 

 

“The definition of insanity is doing the same thing over and over again and expecting different results.”

(Albert Einstein)

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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