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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 714 views
  • 1 like
  • 2 in conversation