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 (October 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 15 Oct 2002 06:00:00 GMT
Reply-To:   gsnell@datasavantconsulting.com
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Gregg Snell <gsnell@DATASAVANTCONSULTING.COM>
Subject:   Re: weird sort problem | programming challenge
Comments:   To: evan.cooch@NOSPAMCORNELL.EDU

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


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