Date: Tue, 10 Jul 2001 09:02:34 -0700
Reply-To: "Huang, Ya" <ya.huang@AGOURON.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Huang, Ya" <ya.huang@AGOURON.COM>
Subject: proc report, compute block & break ?
Content-Type: multipart/alternative;
Hi there,
I am having problem dealing with compute block
and break in proc report, I hope someone out there
has a good trick for this. Following is sample code:
data xx;
do cat='a','b';
do val=1 to 25;
output;
end;
end;
options nocenter ps=20;
proc report nowd headline;
column cat val;
define cat/'cat' order noprint;
define val/'val';
compute before cat;
length text $50;
text='### '||cat||' ###';
line @1 text $50.;
endcomp;
run;
-----------------
The SAS System 08:37 Tuesday, July 10, 2001 41
val
-------------
### a ###
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
........ page break here ....
The SAS System 08:37 Tuesday, July 10, 2001 42
val
-------------
### a ### <-------- this line was not here, any trick to
16 add this line here ?????
17
18
19
20
21
22
23
24
25
### b ###
1
2
3
4
5
So basically, I want a headline generated by compute
block to be not only in the beginning of the order var,
but also in the beginning of each page, if that order var
across two pages.
Any suggestion will be greatly appreciated.
Thanks
Ya Huang
[text/html]
|