Date: Mon, 26 Nov 2007 22:05:08 -0500
Reply-To: Randy <randistan69@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Randy <randistan69@HOTMAIL.COM>
Subject: Numbering Sub groups
Dear All:
Here is my data set:
ID VarA
1 A
1 A
1 B
1 A
1 A
2 A
2 B
2 A
and so on.
I want to create and number the subgroups of VarA by the ID number.
So my data set should look like this:
ID VarA Group_N
1 A 1
1 A 2
1 B 1
1 A 3
1 A 4
2 A 1
2 B 1
2 A 2
Please help.
Randy
|