Date: Tue, 6 Jul 2004 09:19:35 -0700
Reply-To: Tomasz <zombek_1@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Tomasz <zombek_1@YAHOO.COM>
Organization: http://groups.google.com
Subject: Data step question
Content-Type: text/plain; charset=ISO-8859-1
Hi SAS-L,
this time I have quite interesting and easy looking data step question
(in my opinion).
The table I have is like that:
id
1
2
3
4
5
6
7
8
9
10
...
10000
After transformation I would like to have a table:
id group
1 1
2 2
3 3
4 1
5 2
6 3
7 1
8 2
9 3
10 1
...
10000 1
In general I need to assign a group variable(1, 2, or 3).
I have no idea how to do it in the simplest way, therefore any
interesting hints are welcome.
Thomas
|