How can I assign a series of consecutive ID numbers to my cases?
Resolving The Problem
The $casenum variable is a system variable in SPSS that numbers the cases in your data set. You may use the following command:
This creates a variable called ID that numbers the cases consecutively from 1 to N, N being the number of cases in your active data set.
Was this topic helpful?
16 April 2020