|Date: ||Tue, 9 Feb 1999 16:02:24 +0000|
|Reply-To: ||Jeremy Miles <j.n.v.miles@DERBY.AC.UK>|
|Sender: ||"SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>|
|From: ||Jeremy Miles <j.n.v.miles@DERBY.AC.UK>|
|Subject: ||Re: SPSS|
|Content-Type: ||text/plain; charset="us-ascii"|
At 10:45 09/02/99 -0500, Shailendra Dobson wrote:
>Is there any efficient way to compute a new variable, which would be the
>"id or case number" of my data in the data editor? The "id" would be the
>same as the row number. I have to filter/exclude some cases based on case
SPSS has some system variables, which begin with a $.
The one you want is called $casenum.
compute id = $casenum should do the trick.
Jeremy Miles email@example.com
Phone: 01332 622222 x2146 Fax: 01332 622287 Mobile: 07971 218172
Inst. of Behavioural Sciences, Derby University, Derby, DE3 5GX, UK
================ http://ibs.derby.ac.uk/~jeremym ====================