Create the scatter plot. In the SCATTER statement, the GROUP= option groups the data by the SEX variable.
proc sgplot data=sashelp.class; scatter x=height y=weight / group=sex; run;