You should really post an example of the data you have and the data you want. Regardless I have made a major assumption about the data you have and the data you want and the below code should work for that data. data have;
input ID MotherEducation FatherEducation;
DATALINES;
1 0 1
2 1 2
3 2 2
4 2 1
5 2 0
;
run;
Data Want;
SET have;
MaxEd = Max(MotherEducation,FatherEducation);
run;
... View more