Date: Wed, 3 Dec 2003 18:54:34 -0800
Reply-To: David <david5705@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: David <david5705@HOTMAIL.COM>
Organization: http://groups.google.com
Subject: first. last. counter
Content-Type: text/plain; charset=ISO-8859-1
Dear All:
Apologies, but it's getting late and my brain has shut down for the
evening :)
All I want to do is add a variable that counts the number of records
within each by group. For example I want to include the variable
"count" as follows:
patid drug count
1 A 1
2 S 1
3 B 1
3 F 2
4 O 1
5 W 1
6 A 1
6 C 2
I know it's a simple first. last. coding question, but any help would
be appreciated.
Thanks,
David.
|