| Date: | Fri, 4 Oct 2002 14:35:25 -0700 |
| Reply-To: | Kit Leung <hello_joecool@HOTMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Kit Leung <hello_joecool@HOTMAIL.COM> |
| Subject: | How to count? |
| Content-Type: | text/plain; format=flowed |
|---|
data temp;
input @1 x $1. @2 y $1.;
cards;
A4
A6
A7
B8
B9
C1
;
run;
Here's what I want to do: Basically, I need to set a counter to count how
many records under the same variable X.
X Y Count
A 4 1
A 6 2
A 7 3
B 8 1
B 9 2
C 1 1
.
.
run;
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
|