If I make a proc tabulate and then in the Results tab Send to Excel, the excel file is perfect!
When I do it with ODS excel it is not as neatly formatted.
Is there an option to make the ODS excel for proc tabulate exactly like the "Send to Excel"?
Try changing the style, I think the default for send to Excel is HTMLBlue.
ods excel stylel=htmlBlue options(... );
Also I completely messed up my styles trying to do this before. Is there a way to reset them all to default? I think I overwrote HTMLBLUE.
I think the solution I've found historically was to recreate them from a colleagues installation. I don't recall the exact steps, so I'd consider working with tech support on this.
Check to see if you created new versions of your styles in, most likely, SASUSER.Templat that are being used currently.
If using the SAS DMS (older "base" SAS) right click on the text Results in manager window (not results viewer), navigate to templates and check. Or use Proc Template to list styles available ins SASUSER.TEMPLAT.
If so you can delete them and the default styles would be in SASHELP.TMPLMST. Deleting the other styles would leave the defaults as the ones used when called.
If you actually wrote to SASHELP.TMPLMST then you'll need to do some extra work, likely with a colleague.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.