Date: Thu, 10 Apr 2008 04:23:54 -0700
Reply-To: RolandRB <rolandberry@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: RolandRB <rolandberry@HOTMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Can I use width= and cellwidth= at the same time for "proc
report"
Content-Type: text/plain; charset=ISO-8859-1
On Apr 10, 11:51 am, RolandRB <rolandbe...@hotmail.com> wrote:
> Can I use width= and cellwidth= at the same time for "proc report"?
> Has anyone tried this? I want to make my reporting macros more ODS
> friendly and I want them to be able to produce standard listings and
> ODS HTML tabular output at the same time and control the column width
> for both.
I'm trying this now running under v8.2 and am getting some strange
results.
If I run the following code I get a narrow html table.
ods html file="C:\spectre\cellw.html";
proc report nowd data=sashelp.class;
columns name sex age height weight;
define name / width=10 style(column)=[cellwidth=20%];
define sex / width=10 style(column)=[cellwidth=10%];
define age / width=10 style(column)=[cellwidth=20%];
define height / width=10 style(column)=[cellwidth=20%];
define weight / width=10 style(column)=[cellwidth=20%];
run;
ods html close;
But if I run this code I get a wide html table,
ods html file="C:\spectre\cellw.html";
proc report nowd data=sashelp.class;
columns name sex age height weight;
define name / width=10 style(column)=[cellwidth=10%];
define sex / width=10 style(column)=[cellwidth=5%];
define age / width=10 style(column)=[cellwidth=10%];
define height / width=10 style(column)=[cellwidth=10%];
define weight / width=10 style(column)=[cellwidth=10%];
run;
ods html close;
Can somebody explain to me why this should be?