Date: Tue, 23 Nov 1999 01:34:36 GMT
Reply-To: diltilia@MY-DEJA.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: diltilia@MY-DEJA.COM
Organization: Deja.com - Before you buy.
Subject: multiple observation records
Hi,
In the following data set, what's the best way to pull out the records
that have multiple sessions (in this case, user_id 2 and 3)? I used
several BY step to accomplish this, and figured that there's got to be
an easier way??
Please help. Many thanks
-Diltilia
data test;
input user_id session sequence pagename $;
cards;
1 11 29 a
1 11 34 b
1 11 45 c
1 11 50 d
2 22 13 a
2 22 16 b
2 221 55 c
2 221 67 b
2 221 80 a
2 221 90 c
3 331 12 a
3 331 15 b
3 332 1 c
3 332 3 b
3 332 5 a
3 332 9 b
3 333 4 b
3 333 5 c
;
Sent via Deja.com http://www.deja.com/
Before you buy.
|