LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (March 2004, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 4 Mar 2004 20:23:31 +0300
Reply-To:     Peter <murderx@MAIL333.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Peter <murderx@MAIL333.COM>
Organization: Golden Telecom
Subject:      Variable creation
Content-Type: text/plain; charset="US-ASCII"

Hi all!

I have the following problem. There is a SAS dataset with one numeric vaiable X and "n" observations . Want to create variable Y, where the i-th observation of Y equal to the product of all previous observations of X. In other words: Y1=X1, Yi=Y(i-1)*Xi for i=2,3...,n. How can I make it by the means of SAS.

Thanks in advance.

Peter.


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