BookmarkSubscribeRSS Feed
mpajoh
Fluorite | Level 6

I am using proc report and ODS to create a report.

The following makes the word "purple" in the tile purple color.

title6 height=2.5 "Items with Historical Unit Price more than 5 or less

than 0.5 times estimate are highlighted in ^S={foreground=purple}

purple^S={foreground=black}." ;

But, is there a way to make the word "purple" to be in whit with its

background being purple color?

I tried this, but it does not work:

title6 height=2.5 "Items with Historical Unit Price more than 5 or less

than 0.5 times estimate are highlighted in ^S={foreground=white

background=purple} purple^S={foreground=black}." ;

I use sas 9.1.3 SP4 on XP.

Thanks:

Masoud

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  What is your destination of interest?? HTML, RTF, PDF??? I wonder because I would expect the title statement to work at least with ODS HTML. In fact, in my test code (shown below) using SAS 9.2, I see that ODS HTML and ODS TAGSETS.RTF in SAS 9.2 both created the desired output. However, the original RTF output and the PDF output did not show the desired changes. I don't have 9.1.3 to test with anymore, but I suspect you might get similar results in that version, too.

  For more help with this question, you might want to work with Tech Support.

cynthia

Test code (see screenshot for output RTF and PDF looked the same; HTML and TAGSETS.RTF looked approximately the same):

ods escapechar='^'; 

title1 height=12pt

"1) Items with Something are highlighted in ^S={foreground=purple} purple^S={foreground=black}." ;

     

title2 height=12pt

"2) Items with Somethine Else are highlighted in ^S={foreground=white background=purple} purple^S={foreground=black}." ;

  

title3 "Run on SAS version &sysvlong using &sysscp &SYSSCPL";

  

ods html file='c:\temp\test_title.html' style=sasweb;

ods rtf file='c:\temp\orig_test_title.rtf';

ods tagsets.rtf file='c:\temp\tr_test_title.rtf';

ods pdf file='c:\temp\test_title.pdf';

   

options nocenter;

   

proc print data=sashelp.class noobs;

run;

  

ods _all_ close;   

   

title; footnote;


test_title.jpg

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1 reply
  • 759 views
  • 1 like
  • 2 in conversation