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 (February 2006, 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 Feb 2006 02:02:18 -0800
Reply-To:     p.stat@TISCALI.IT
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         p.stat@TISCALI.IT
Organization: http://groups.google.com
Subject:      Program for dynamic calculation
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset="iso-8859-1"

Hi, I need help to automate a calculation.

I have a data set with 180 observations. I want to set up a program to get the following result:

Select the first 170 observations. Execute some calculations on the last 50 observations and get a table output.

Select the first 171 observations. Execute some calculations on the last 50 observations and get a table output. ... Select the first 180 observations. Execute some calculations on the last 50 observations and get a table output.

The number of the last observations is variable. This number could be 40 or 50 or 110 or 170.

Finally, in this example, the result of the program will be 44 tables...

Can you help me ? Thank you

p.


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