if you have two more variable you need specify the corresponding prefix in proc univariate :
proc sort data=sashelp.class out=class;by sex;run;
Proc Univariate Data=class noprint;
by sex;
var weight height;
Output Out=Result2 PctlPre=weight_ height_ PctlPts=1 to 100 by 10;
Run;
... View more