Usually, you would compare the distribution of a variable for groups defined by some other variable:
proc rank data=sashelp.heart(keep=weight cholesterol) out=work.heart_deciles groups=10;
VAR weight;
RANKS weight_decile;
run;
proc sort data=work.heart_deciles;
by weight_decile;
run;
proc sgpanel data=work.heart_deciles;
title "Cholesterol Distribution per Decile";
where weight_decile in (0,9);
panelby weight_decile / columns=1;
histogram Cholesterol;
density Cholesterol / type=kernel;
run;
PG