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 (August 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 14 Aug 2003 10:37:56 -0400
Reply-To:     dave <marcotte@UMBC.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         dave <marcotte@UMBC.EDU>
Subject:      adding count of occurences of value of X to data set

Hello:

I need to add, as a new variable, a count of the occurence of a separate variable. So, I have a data set that looks like this:

Y X 4 1 5 1 3 2 2 3 8 3 9 3

And I want a data set that looks like this:

Y X J 4 1 1 5 1 2 3 2 1 2 3 1 8 3 2 9 3 3

Can anyone help with this?

Thanks,

Dave


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