Hello.
The situation that I am facing is as follow. I am running a code inside Excel using SAS Add-Ins. This code produce three datasets. I am having difficulties exporting/printing each dataset to its own tab. Thoughts?
Example, redirect the output for Asia and Europe to individual tabs in Excel.
data cars;
set sashelp.cars;
run;
proc print data=SASHELP.CARS(where=(Origin='Asia'));
;
run;
proc print data=SASHELP.CARS(where=(Origin='Europe'));
;
run;
As a minimum you should include the code that you are running. Then we have a chance to follow the attempt and may be able to provide comments.
Better would be to show the Log from SAS when running your program to see if SAS is seeing potential problems.
You don't have to code to do that. Just click on the Data icon in the SAS tab and click the Browse button. Select library SASHELP and dataset CARS and select Open. The default sheet name stays as Sheet1 but you can just change it.
This works for any dataset of your choosing, not just those in the SASHELP library. You can specify sending your data to a new sheet and provide the name:
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.