To get them in the same plot, you can use PROC SGPANEL. For example:
proc sort data=sashelp.class out=class; by sex; run;
ods exclude qqplot; ods output qqplot=qqdata; proc univariate data=class; by sex; var height; qqplot / normal(mu=est sigma=est); run;
data qqdata; set qqdata; label = "Mu=" || put(RefInt,best6.) ||", Sigma=" || put(RefSlope,best6.); run;
proc sgpanel data=qqdata; panelby sex / columns=1; lineparm x=0 y=refInt slope=refSlope; scatter x=quantile y=data; inset label / position=BottomRight; run;
PROC UNIVARIATE uses the same reference line for each plot to ensure they can share a common x-axis.
... View more