|
Evan,
This might give you a start:
data test2;
set test nobs=nobs point=nobs;
output;
do i=1 to nobs-1;
set test point=i;
output;
end;
stop;
run;
Regards,
Gregg P. Snell
Data Savant Consulting
>Must be late in the day, or the beer has run otu. One or the other ;-)
>
>Suppose you have a data set, containing the following simple oridnal
>sequence of numbers:
>
>1
>2
>3
>4
>
>What I'm try to do is sequentially generate what I'll call
>'frame-shift' sorts of these numbers:
>
>4
>1
>2
>3
>
>
>then
>
>3
>4
>1
>2
>
>then
>
>2
>3
>4
>1
>
>leading back to
>
>1
>2
>3
>4
>
>Any ideas how to do this (without using SQL)? I'm stuck...
>
>Thanks!
>
>
>
http://www.datasavantconsulting.com
|