Date: Mon, 27 Jun 2005 14:26:07 -0400
Reply-To: "Sridhar, Kumar" <nsridhar@MEDAREX.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Sridhar, Kumar" <nsridhar@MEDAREX.COM>
Subject: Question about Compute _before_
Content-Type: text/plain; charset="us-ascii"
In my proc report, I need to list all patients by treatment
group. That is to say, on any single page I can have only patients from
say Treatment Group A.
I have the following dataset and code and am trying to generate a
input trtn $2. subjid $4. lvtdt $9.;
A 001 01MAY2005
A 002 02JUN2005
B 003 02MAY2005
B 050 02JUN2005
proc sort data=x;
by trtn subjid lvtdt;
proc report data=x nowd split='|';
columns trtn subjid lvtdt;
compute before _page_ / left;
line "Treatment Group: " trtn $2.;
define trtn /'Treatment' group noprint;
define subjid /'Subject' order order=internal;
define lvtdt /'Last Date|of Visit' order order=internal;
I must be missing something because what I am getting is a listing of
all patients in the study with treatment group not being shown at all.
Do I need to do anything before the proc report (I have sorted my
dataset by all variables present in the columns statement in the same
Any assistance is always appreciated.