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>
Organization: Versatel
Subject: Re: ODS/rtf
"Mark Lamias" <Mark.Lamias@GRIZZARD.COM> wrote in message
news:16484F90DE05BB478A0CA3336AE307B1DA1EEE@atl_mail.griz-main.com...
> 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
your
> particular data. All of the color coding is controlled by the compute
> statement...
>
>
> ods rtf file='c:\temp\testing.rtf';
> proc report data=sashelp.class nowindows;
> column name sex;
> compute sex;
> count+1;
> if (mod(count, 5)) eq 1 then do;
> call define(_row_, "style", "style=[background=red]");
> end;
> endcomp;
> run;
> 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
pretext="\tqdec\tx150 "];
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).
Ronnie