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 (April 2010, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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