Can SPSS commands (e.g., MERGE FILES) be used to perform a left outer join between 2 SPSS datasets? Assume that the join field is not unique in either dataset.
Example: Let the left Dataset1 contains 2 fields - ClassNbr and Fact1 - and these 4 records . . .
1 A1 D2 A
3 B
Let Dataset2 contains 2 fields - ClassNbr and Fact2 - and these 3 records . . .
1 XX1 XY
3 ZZ
I want to join Dataset1 and Dataset2 on ClassNbr. The desired result is a 6 record dataset as follows:
1 A XX1 A XY
1 D XX
1 D XY
2 A (NULL)
3 B ZZ
I would prefer a solution that uses SPSS commands (as opposed to SQL/Python/etc.).