| Date: | Wed, 21 Apr 2010 13:11:28 -0400 |
| Reply-To: | "Tonkovich, Mike" <Mike.Tonkovich@DNR.STATE.OH.US> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "Tonkovich, Mike" <Mike.Tonkovich@DNR.STATE.OH.US> |
| Subject: | Rank Based on 2 Variables |
| Content-Type: | text/plain; charset="US-ASCII" |
Sample Data as follows:
Type Score
NT 235
T 100
T 125
NT 150
I want to sort by "Type" and "Score" within "Type" and then create a new
variable called Rank. If there were 200 T and 150 NT scores, values for
rank would go from 1-200 for T and 1-150 for NT.
Any help would be truly appreciated.
Thank you.
Mike
|