I have more than a hundred date variables in SPSS. I want to, for each case, select the earliest date of the 100 date values and the latest date and recode these into new variables.

Is there a way I can do this using syntax in SPSS?

The dataset looks something like this:

Case 1 - date1 - date2 - date3 - ... - date 100

Case 2 - date1 - date2 - date3 - ... - date 100

Case 3 - date1 - date2 - date3 - ... - date 100

...

More Miriam van der Velde's questions See All
Similar questions and discussions