BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
t_ar_taat
Quartz | Level 8

Hi!
When ods excel, default style is HTMLBlue.
like this.

HTMLBlue.jpg

For me, simple/naked/nostyle is better like this.

simple-style.jpg
Is there way to get it?
I asked google but failed.

google-search.jpg
also
https://www.pharmasug.org/proceedings/2018/BB/PharmaSUG-2018-BB03.pdf
This document say "no style" means HTMLBlue. But I want totally simple/no style one.
no-stye-htmlblue.jpg
Saying another way, I want make proc print / proc report with no style.

Thank you for your helping.

 

minimum ods excel code

ods excel file= "D:\test.xlsx" ;
proc odstext;
  p "A";
run;  

proc print data=sashelp.heart(obs=5);
 var Status;
run;
ods excel close;

 

1 ACCEPTED SOLUTION
4 REPLIES 4
t_ar_taat
Quartz | Level 8

Thank you, this is what I want.

ods excel file= "D:\test.xlsx" 
style=minimal
;

proc print data=sashelp.heart(obs=5);
 var Status;
run;
ods excel close;
ballardw
Super User

Clarification: if you do not specify a Style on an ODS destination statement then you get the default for the destination.

ODS Excel will default to the Style set as the default style for your SAS session which might be HTMLBlue.I know that it is not in my install because I set MEADOW as my default style.

Some destinations like ODS RTF will use their own preferred style RTF unless you specifically override it. ODS Powerpoint uses one of PowerPointLIght or PowerPointDark (or similar restricted styles as not all the PowerPoint features will work with just any style).

 

So you could set a style such as Minimal as your default or specify it as the style on the ODS destination statement.

t_ar_taat
Quartz | Level 8
ballardw,thank you for your help!

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!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1563 views
  • 0 likes
  • 3 in conversation