This is the same data set. The data portion has a lot of if/then where i create dichotomous variables out of multi-answer survey questions. What the sort does, is it sorts it by gender and by grade, so i do need each variable sorted this way. What i would like to do though is instead of deleting the variable and typing the next one, is to just enter all the variables at once and have the output be by variable where the variable is sorted by gender and grade. so if i do proc freq; tables (variable1 variable2 variable3 variable4 ....)*school run; i would like the output to be each variable, sorted by corresponding gender variable and grade variable. does this sort of make sense? i need this to enter the data in a report, it would just be easier than going back and forth between variables to see the gender and grade.
... View more