Date: Thu, 19 Feb 2004 14:43:14 -0800
Reply-To: Liyan Liu <liyanliu888@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Liyan Liu <liyanliu888@YAHOO.COM>
Subject: proc report:
In-Reply-To: <c03ia2$10us4h$1@ID-102906.news.uni-berlin.de>
Content-Type: text/plain; charset=us-ascii
Dear fellow SAS professionals,
I wish to print out all the variables for each person
in one page. Right now my program produces the results
in 2 pages, how could I modify it so the results will
all fall within one page for each person? Attached is
my program.
Thanks so much,
Liyan
%MACRO PRN(START,STOP);
%DO I=&START %TO &STOP;
PROC REPORT DATA=one SPLIT='/' HEADSKIP HEADLINE;
WHERE ID=&I;
COLUMN id MRN beg_memb end_memb dob datedx dplace
RACE;
DEFINE id / ORDER SPACING=2 LEFT "ID";
DEFINE MRN / ORDER SPACING=2 LEFT;
DEFINE BEG_MEMB/ORDER WIDTH=12 FORMAT=DATE9.
SPACING=2 LEFT 'Date of/enrollment';
DEFINE end_memb/DISPLAY FORMAT=date9. WIDTH=14
SPACING=2 LEFT 'Date of/disenrollment';
DEFINE end_memb/DISPLAY FORMAT=date9. WIDTH=14
SPACING=2 LEFT 'Date of/disenrollment';
DEFINE dob / DISPLAY WIDTH=12 SPACING=2
LEFT "Date of/birth" format=date9.;
DEFINE datedx /dISPLAY WIDTH=12 SPACING=2 LEFT "Date
of/diagnosis" format=date9.;
DEFINE dplace/DISPLAY WIDTH=10 SPACING=2
LEFT "State of/death" format=$place.;
DEFINE race /DISPLAY WIDTH=10 SPACING=2
LEFT "Ethnic/group" format=race.;
run;
%MEND;
%PRN(1,3);
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
|