Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export to Excel using SAS

Tags:

excel

sas

Suppose I have 2 SAS dataset: test1.sas & Test2.sas. Now I want to export these 2 dataset into excel, where in the excel file Sheet1 will have test1.sas data & in Sheet2 will have test2.sas data.

How to do it?

like image 520
Beta Avatar asked Mar 21 '26 20:03

Beta


1 Answers

Start with this paper. This and this are also good references.

Using ODS, you can output your data using reporting procs (Ex. Proc PRINT and REPORT) to XML. Not only can you create multisheet output, but you can format dates, set autofilters and place headers.

like image 50
Jay Corbett Avatar answered Mar 25 '26 00:03

Jay Corbett



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!