there is an example in online doc at http://support.sas.com/onlinedoc/913/getDoc/en/procstat.hlp/univariate_sect57.htm
adapted here, to use sashelp.class data with a class statement
[pre]
proc univariate data= sashelp.class noprint ;
class sex ;
var weight height ;
output out=Pctls pctlpts = 20 40
pctlpre = weight height
pctlname = pct20 pct40 ;
run ;
[/pre]
Good Luck
Peter
Catch up on SAS Innovate 2026
Dive into keynotes, announcements and breakthroughs on demand.