SPSS – macro definitions

 

SPSS macro variables are a convenient way to summarize variable lists (or other spss syntax) in one name. They are generated using the following syntax:

 

!define @varname ()

   var1 var2 var3 var3

enddefine.

 

Note that there is only one period (.) in this statement! I use @ to name macro-variables, but this is just my own convention.