Date: Thu, 5 Dec 2002 14:34:03 +0100
Reply-To: Ronnie <pluym@WXS.DIT.ZAL.NIET.WERKEN.NL>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ronnie <pluym@WXS.DIT.ZAL.NIET.WERKEN.NL>
Subject: Re: ODS/rtf
"Mark Lamias" <Mark.Lamias@GRIZZARD.COM> wrote in message
> Here's an example that will color code every fifth row, starting with the
> first one. You can modify it according to your specifications and for
> particular data. All of the color coding is controlled by the compute
> ods rtf file='c:\temp\testing.rtf';
> proc report data=sashelp.class nowindows;
> column name sex;
> compute sex;
> if (mod(count, 5)) eq 1 then do;
> call define(_row_, "style", "style=[background=red]");
> ods rtf close;
This is indeed what I was looking for. Thanks Mark. I have to admit that I
was a bit to focused on creating it with a datastep.
Now I have come up with another problem.
I use following define statement in the proc report (the style alligns the
values to the decimal separator):
define val1 / "YLS" width=10 style(column)=[protectspecialchars=off
This works fine except for the width statement. This doesn't seem to have
any affect on the result??
However the syntax is the same as in the faq (rtf14).