The SAS Output Delivery System and reporting techniques

OSD Excel make style like "Results" -> "Send to Excel"

Reply
Frequent Contributor
Posts: 79

OSD Excel make style like "Results" -> "Send to Excel"

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"?

 

 

Super User
Posts: 22,820

Re: OSD Excel make style like "Results" -> "Send to Excel"

Posted in reply to fieldsa83

Try changing the style, I think the default for send to Excel is HTMLBlue.

 

ods excel stylel=htmlBlue options(... );
Frequent Contributor
Posts: 79

Re: OSD Excel make style like "Results" -> "Send to Excel"

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.

Super User
Posts: 22,820

Re: OSD Excel make style like "Results" -> "Send to Excel"

Posted in reply to fieldsa83

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.

Super User
Posts: 12,996

Re: OSD Excel make style like "Results" -> "Send to Excel"

Posted in reply to fieldsa83

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.

Ask a Question
Discussion stats
  • 4 replies
  • 162 views
  • 0 likes
  • 3 in conversation