Hi. I have a dataset where participants have multiple rows of data and I need to restructure this so that each participant has one row of data. I don't currently have a numerical variable that I can use as the index variable. I therefore want to create a variable that numbers each row of data that belongs to one participant . I found the $CASENUM function but can't work out how to make it apply that repeatedly for each participant based on the ID number variable. Does anyone have a solution for this? Thanks.
------------------------------
Phillippa Lally
------------------------------
#SPSSStatistics