Date: Wed, 20 Mar 2002 07:33:58 -0800
Reply-To: Michael Bailey <jm-bailey@NORTHWESTERN.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Michael Bailey <jm-bailey@NORTHWESTERN.EDU>
Organization: http://groups.google.com/
Subject: creating ID variable with "By" statement
Content-Type: text/plain; charset=ISO-8859-1
I want to create a new variable that is unique to every combination of
2 variables that I set with a "By" statement. Let's say these 2
variables are "Name" and "City." So I want a new variable "ID" that is
the same whenever Name and City are the same but differs when either
differs.
|