Our simplest (but one of the most effective) syntax that we created within SPSS was:
COMPUTE Age=DATEDIFF(DateScreen,DOB,"months").
EXECUTE.
This code meant that the SPSS program could automatically create the child's age in months from the date of birth (DOB) and the date of screening (DateScreen). We also created syntax to code all of Australia's postcodes into deciles relating to advantage/disadvantage, and all of Australia's languages.
Graham Daniel, Kate Crowe, Sarah Masso, and Sharynne McLeod at ACSPRI in Sydney |