proc format; value school 5-11="Elementary" 12-14="Junior High" 15-19="High School"; run; proc sql; create table Groups as select Name, Age, Height, Weight, put(Age,school.) as SchoolGroup from sashelp.class order by Age, Height; quit; data YoungestBySchoolGroup; set Groups; by SchoolGroup notsorted; if first.SchoolGroup; run; proc print data=YoungestBySchoolGroup; title1 "Youngest Student in each School Group"; run;