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