From: Carol Bristow on
You need to create a variable, assign the text that you want, and then
use the line statement to put that variable. So in your case,

compute after grp;
line1 $ 40;
if grp=1 then line1 = "age=50-60";
else if grp=2 then line1 = "age=70-80";
line @40 line1;
endcomp;

Carol Bristow
1655 N Fort Myer Dr Ste 925
Arlington, VA 22209
ph: 703.682.2612
fax: 703.528.3100


-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L(a)LISTSERV.UGA.EDU] On Behalf Of
monal kohli
Sent: Wednesday, July 25, 2007 4:00 PM
To: SAS-L(a)LISTSERV.UGA.EDU
Subject: Conditional Footnotes-PROC REPORT

Hi All,
I am trying to put different footers on each page based on the value of
group variable on that page.I have not been able to do it successfuly
with COMPUTE block.This is what I am trying to do.My group variable is
grp.

compute after grp;
if grp=1 then line @40 "age=50-60";
if grp=2 then line @40 "age=70-80";
endcomp;

But conditional if doesn't work and all the pages have both the
footer.Can someone provide some insight.

TIA
Mona



________________________________________________________________________
____________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/