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 (September 2008, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 2 Sep 2008 00:33:14 -0700
Reply-To:     oercim <oercim@YAHOO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         oercim <oercim@YAHOO.COM>
Organization: http://groups.google.com
Subject:      generating consecutive integers for each group using SAS
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

hello. I have a problem. Using SAS programming I want to do that: I have such a data column(let labeled 'A'): A --- a a a b b b b c d d Now, I want to generate consecutive integers for each group such that A B --- ---------- a 1 a 2 a 3 b 1 b 2 b 3 b 4 c 1 d 1 d 2 how can i generate this integers using SAS programming? thanks a lot


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