LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2008, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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"
Comments: To: sas-l@uga.edu
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?


Back to: Top of message | Previous page | Main SAS-L page