SPSS 26 improved the Syntax Editor interface. If your code looks like plain text, enable highlighting:
* Recoding a continuous age variable into generations. RECODE Age (LO thru 25=1) (26 thru 41=2) (42 thru 57=3) (58 thru HI=4) INTO Generation. EXECUTE. * Assigning descriptive labels to the new categories. VALUE LABELS Generation 1 'Gen Z' 2 'Millennials' 3 'Gen X' 4 'Boomers'. EXECUTE. Use code with caution. Computing New Variables spss 26 code
Quickly summarize your data distribution and central tendencies. SPSS 26 improved the Syntax Editor interface
SORT CASES BY gender (A) age (D). SELECT IF (age >= 18). EXECUTE. = 18). EXECUTE.