I am completely new in SPSS and now trying to write syntax to manipulate my dataset.
I now have a dataset which looks like this:
V1 V2
1 2007/01/23
2 2007/02/25
. . . .
First row "V1" is the row number and second row "V2" is the date.
I would like to find the difference between the dates "V2" for each 2 subsequent rows and create a new third column of data for the result.
However, I have no idea how to do the subtraction for data in two different rows.