data _null_;
if _n_=1 then do;
if 0 then set sashelp.class;
declare hash h(dataset:'sashelp.class',ordered:'y',multidata:'y');
h.definekey('weight');
h.definedata(all:'y');
h.definedone();
end;
rc=h.output(dataset:'want');
run;
Catch up on SAS Innovate 2026
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.