LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2005, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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"

Hi All:

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 report:

data x; input trtn $2. subjid $4. lvtdt $9.; cards; A 001 01MAY2005 A 002 02JUN2005 B 003 02MAY2005 B 050 02JUN2005 ; run;

proc sort data=x; by trtn subjid lvtdt; run;

proc report data=x nowd split='|'; columns trtn subjid lvtdt;

compute before _page_ / left; line "Treatment Group: " trtn $2.; endcomp; define trtn /'Treatment' group noprint; define subjid /'Subject' order order=internal; define lvtdt /'Last Date|of Visit' order order=internal; run;

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 order)..

Any assistance is always appreciated.

TIA

Kumar Sridhar


Back to: Top of message | Previous page | Main SAS-L page