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

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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