Date: Wed, 16 Apr 2008 19:42:59 -0400
Reply-To: Ya Huang <ya.huang@AMYLIN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ya Huang <ya.huang@AMYLIN.COM>
Subject: Simple proc report question
Hi there,
Haven't used proc report for a while. I am stumped by this supposedly
very simple code. In the data, s1 and s2 are constant for each id.
data xx;
input id x y z s1 s2;
cards;
1 23 45 32 2.1 0.5
1 45 67 43 2.1 0.5
2 33 75 62 5.1 0.6
2 25 37 33 5.1 0.6
;
options nocenter;
proc report nowd headline;
column id s1 s2 x y z;
define id / order;
define x / display;
define y / display;
define z / display;
define s1 / noprint;
define s2 / noprint;
break after id / skip;
compute after id;
line @1 's1=' s1 best. @10 's2=' s2 best.;
endcomp;
run;
id x y z
------------------------------------------
1 23 45 32
45 67 43
s1= s2=
2 33 75 62
25 37 33
s1= s2=
My question: Why s1 and s2 are not showing up?
Thanks
Ya