LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (January 2011, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 14 Jan 2011 15:47:25 -0800
Reply-To:     Sterling Paramore <gnilrets@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Sterling Paramore <gnilrets@GMAIL.COM>
Subject:      Re: PROC REPORT - Across variables and cell widths in HTML output
In-Reply-To:  <AANLkTin6Wxs=hvXD=2aXRRAcou4tW0LhtvUO8uyQ2+tq@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Joe,

I had tried that, but I failed to realize that it was my html viewer that was resizing the cells to fit in the window. When I made the window bigger, the cells expanded to the correct size.

Thanks!

On Fri, Jan 14, 2011 at 3:28 PM, Joe Matise <snoopy369@gmail.com> wrote:

> I think that the problem is that for the ACROSS variable, it takes its > width from ClaimLine_Allow_Amt. For example, this does not work: > ods html; > proc report data = sashelp.class nowd; > columns name weight,age; > define name / group style(header) = [cellwidth=6in]; > define age / across style(column) = [cellwidth=5in]; > define weight / '' analysis sum; > run; > ods html close; > > But this does: > ods html; > proc report data = sashelp.class nowd; > columns name weight,age; > define name / group style(header) = [cellwidth=6in]; > define age / across ; > define weight / '' analysis sum style(column)= [cellwidth=5in]; > run; > ods html close; > > -Joe > > > On Fri, Jan 14, 2011 at 5:10 PM, Sterling Paramore <gnilrets@gmail.com>wrote: > >> Dear SAS-L, >> >> I'm having trouble setting cellwidths with PROC REPORT when I have an >> across >> variable. For example, the following code produces some ridiculously wide >> columns (so I can test that it's working): >> >> >> proc report data = SASUSER.example; >> where Claim_Incurred_yrmo >= 201001; >> columns Claim_Class_Id Claim_Incurred_yrmo ClaimLine_Allow_Amt ; >> >> define Claim_Class_Id / group style(header) = [cellwidth=6in]; >> define Claim_Incurred_yrmo / group style(column) = [cellwidth=5in]; >> define ClaimLine_Allow_Amt / '' analysis sum; >> >> run; >> >> However, in the following report, cellwidth is being ignored: >> >> proc report data = SASUSER.example; >> where Claim_Incurred_yrmo >= 201001; >> columns Claim_Class_Id ClaimLine_Allow_Amt,Claim_Incurred_yrmo; >> >> define Claim_Class_Id / group style(header) = [cellwidth=6in]; >> define Claim_Incurred_yrmo / across style(column) = [cellwidth=5in]; >> define ClaimLine_Allow_Amt / '' analysis sum; >> >> run; >> >> >> >> >> I have a suspicion that this problem is because the report is becoming too >> wide and it's trying to squeeze the report onto a page that's too small >> and >> thus overriding my explicit cell widths. Does anyone know how to overcome >> this? >> >> Thanks, >> Sterling >> > >


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