Steve Sizmur PhD, Chief Statistician at Picker Institute Europe suggested this code. Thank you, Steve! It illustrates how to read data for a set of variables (var1 to var4), get the variable information from SPSS and then process them — in this case to create a correlation matrix.
Check it out