/* ************************************************************* */ /* Purpose: Merges wave 1 household and responding person files */ /* ************************************************************* */ file handle w1p /name='X:\HILDA\Release 140\Files\SPSS 140c\Rperson a140c.sav'. file handle w1h /name='X:\HILDA\Release 140\Files\SPSS 140c\Household a140c.sav'. /*output directory*/ file handle w1psort /name='C:\temp\Rperson sorted a140c.sav'. file handle w1hsort /name='C:\temp\Household sorted a140c.sav'. get file=w1h . /* / keep= ahhrhid ahifefn ahifefp ahifdip ahifdin. */ sort cases by ahhrhid. save outfile=w1hsort. get file=w1p. sort cases by ahhrhid. save outfile=w1psort. match files file=w1psort / table=w1hsort / by ahhrhid. exe.