Date: Tue, 26 Feb 2002 23:32:51 -0800
Reply-To: Victor Bos <victorbos@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Victor Bos <victorbos@HOTMAIL.COM>
Organization: http://groups.google.com/
Subject: Re: ODS, Stylesheet= and Proc report trouble - Problem solved
Content-Type: text/plain; charset=ISO-8859-1
victorbos@hotmail.com (Victor Bos) wrote in message news:<d4ff7a76.0202260159.36a3f4b2@posting.google.com>...
> Hi all,
>
> I am struggling with the following:
> - I am using the ODS to create an .html file with proc report
> - I want to use an existing stylesheet, so my ODS statement says ODS
> html ... stylesheet=(url='file://thestylesheet.css').
> - The stylesheet contains definitions for 'data', 'dataemphasis',
> 'header', etc so this should work.
> - So far so good.
> - The problem is that my dataset that is input for proc report,
> contains both numeric and character variables. In the html that proc
> report generates, all character variables get the 'Data' class
> attribute, and the numeric variables get none. So, a tablecell for a
> character variable shows <TD class="Data">value</TD> and a numeric
> variable just <TD>value</TD>. As a result my numeric variables are not
> displayed correctly.
>
> Anyone also had this problem and....found a solution?
Hi all,
I've found the solution to this thing.
The problem lies in a new feature in SAS 8.2, that is that SAS will
use a 'TD' style class definition that will right-justify numeric data
cells.
See: http://www.sas.com/service/techsup/unotes/SN/005/005946.html
As a result, if you use an existing stylesheet, a TD class must be
present, and it should also contain a 'text-align: right'. Otherwise
all numeric data will mess up. Typically the stylesheet should also
contain a Data class that will automatically be applied to character
data.
bye,
Victor.
|