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;
Navigate AI governance with SAS tools for compliance and ethical AI practices. Try SAS Ai Navigator for free for the first six months.