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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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