BookmarkSubscribeRSS Feed
kojuramesh
Calcite | Level 5

code to export two output datasets as excel file into different tabs. 

for example: output datasets Check_transactions and Cash_transactions export as Transactions excel file to local C:\Users\kojuramesh\Documents

 

Thanks

2 REPLIES 2
ballardw
Super User

Not with PROC Export and likely not with any Export data widget or task.

 

ODS and Proc print:

 

ods excel file="x:\example.xlsx" options(sheet_interval='PROC');

proc print data=sashelp.class noobs;
run;

proc print data=sashelp.cars noobs;
run;

ods excel close;

There are other valid sheet_interval options but this is likely to work for this sort of thing IF the data sets are small enough to fit on a single sheet.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 2 replies
  • 802 views
  • 2 likes
  • 3 in conversation