/* ************************************************************* */ /* Purpose: This program demonstrates how to merge */ /* partner information to a responding person using wave 5 data. */ /* ************************************************************* */ /* Sort the responding person file by xwaveid and save the sorted file */ get file='X:\HILDA\Release 140\Files\SPSS 140c\Rperson e140c.sav'. sort cases by xwaveid. save outfile='c:\temp\Rperson e140c.sav'. get file='X:\HILDA\Release 140\Files\SPSS 140c\Rperson e140c.sav' /keep= ehhpxid ehgage ehgsex ejbhruc . sel if ehhpxid ne ''. rename vars (ehhpxid = xwaveid) (ejbhruc = parthour) (ehgage = partage) (ehgsex = partsex). sort cases by xwaveid. match file table=*/file='C:\temp\Rperson e140c.sav'/by xwaveid. exe.