Create the box plot. The CATEGORY= option specifies the category variable.
proc sgplot data=sashelp.heart; title "Cholesterol Distribution by Weight Class"; hbox cholesterol / category=weight_status; run;