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
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
|