LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 1999)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments:   To: Shailendra Dobson <sdobso00@UOGUELPH.CA>
In-Reply-To:   <Pine.HPP.3.95.990209104335.12018A-100000@ccshst01>
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 >number. >

SPSS has some system variables, which begin with a $.

The one you want is called $casenum.

Something like:

compute id = $casenum should do the trick.

==================================================================== Jeremy Miles j.n.v.miles@derby.ac.uk 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 ====================


Back to: Top of message | Previous page | Main SPSSX-L page