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 (September 2004, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 3 Sep 2004 14:01:07 -0500
Reply-To:     "Workman, Rob" <Rob.Workman@CARBOMEDICS.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Workman, Rob" <Rob.Workman@CARBOMEDICS.COM>
Subject:      Re: PROC REPORT
Comments: To: JBosch1@PRDUS.JNJ.COM
Content-Type: text/plain; charset="iso-8859-1"

Jules,

Is this what you need?

proc report data = a nowd; columns i x; define i / display; define x / computed; compute x; z + i; x = z; endcomp; run;

Kind regards,

Rob Workman

-----Original Message----- From: Bosch, Jules [PRDUS Non J&J] [mailto:JBosch1@PRDUS.JNJ.COM] Sent: Friday, September 03, 2004 11:45 AM To: SAS-L@LISTSERV.UGA.EDU Subject: PROC REPORT

Dears,

The 2nd data step in the following simple code accumulates values as each row is processed.

data a;

do i=1 to 10;

output;

end;

run;

data b; set a;

x+i;

run;

proc print;run;

Is it possible to create a new column that accumulates row values using PROC REPORT on data set A?

TIA,

Jules Bosch

===================================================================== This message contains confidential information intended only for the use of the addressee(s). If you are not the addressee or the person responsible for delivering it to the addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited. If you have received this message by mistake, please notify us by replying to the sender and delete the original message immediately thereafter. Thank you.


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