Case ID variable

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Case ID variable

Mathew Chandler
Is there a simple way to add a variable to a data set that is just the
case number (or order in which the cases are entered)?

Mathew Chandler
Computing Consultant-Client Support & Services
I.T. Services
University of Windsor
Windsor, Ontario, Canada
N9B 3P4
(519) 253-3000 ext. 2768
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Case ID variable

Bauer, Craig
Compute id=$casenum.

Casenum is a system variable that holds the sequential case number.

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Mathew Chandler
Sent: Tuesday, October 17, 2006 12:14 PM
To: [hidden email]
Subject: Case ID variable

Is there a simple way to add a variable to a data set that is just the
case number (or order in which the cases are entered)?

Mathew Chandler
Computing Consultant-Client Support & Services I.T. Services University
of Windsor Windsor, Ontario, Canada N9B 3P4
(519) 253-3000 ext. 2768
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Case ID variable

Mark A Davenport MADAVENP
In reply to this post by Mathew Chandler
COMPUTE casenum=$CASENUM.

***************************************************************************************************************************************************************
Mark A. Davenport Ph.D.
Senior Research Analyst
Office of Institutional Research
The University of North Carolina at Greensboro
336.256.0395
[hidden email]

'An approximate answer to the right question is worth a good deal more
than an exact answer to an approximate question.' --a paraphrase of J. W.
Tukey (1962)






Mathew Chandler <[hidden email]>
Sent by: "SPSSX(r) Discussion" <[hidden email]>
10/17/2006 12:13 PM
Please respond to
[hidden email]


To
[hidden email]
cc

Subject
Case ID variable






Is there a simple way to add a variable to a data set that is just the
case number (or order in which the cases are entered)?

Mathew Chandler
Computing Consultant-Client Support & Services
I.T. Services
University of Windsor
Windsor, Ontario, Canada
N9B 3P4
(519) 253-3000 ext. 2768
[hidden email]