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 (July 2007, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 31 Jul 2007 14:22:00 -0500
Reply-To:   "data _null_;" <datanull@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "data _null_;" <datanull@GMAIL.COM>
Subject:   Re: PROC REPORT formatting
Comments:   To: Paige Miller <paige.miller@kodak.com>
In-Reply-To:   <1185902341.463858.235380@q75g2000hsh.googlegroups.com>
Content-Type:   text/plain; charset=ISO-8859-1

I don't think it works that way. You need compute for X1 and X2;

See example below.

proc report nowd headline data=sashelp.class; columns age name weight; define age / order; define weight / display format=z5.1 width=18; compute before age; dataStepAGE = age; endcomp; compute weight; if dataStepAge eq 12 then do; /* rc = seenum(age,'NOTE: AGE=');*/ /* rc = seenum(datastepAge,'NOTE: datastepAge=');*/ call define('weight','format','18.7'); end; endcomp; run;

On 7/31/07, Paige Miller <paige.miller@kodak.com> wrote: > I would like to change the formatting of certain rows in PROC FORMAT. > Specficially, if a variable named PASS108 has the value 3, I want to > assign different formats to columns X1 and X2 in that row. > > Here's what I have tried: > > compute after pass108; > if pass108=3 then do; > call define('x1','format','pvalue6.4'); > call define('x2','format','pvalue6.4'); > end; > endcomp; > > Now, I'm sure my error is something simple, but I just can't figure it > out. Someone please enlighten me. Thanks. > > -- > Paige Miller > paige\dot\miller \at\ kodak\dot\com >


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