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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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