Syntax, PROC SORT step:
PROC SORT DATA=SAS-data-set<OUT=SAS-data-set>;
BY <DESCENDING> BY-variable(s);
RUN;
|
proc sort data=clinic.admit out=work.wgtadmit; by weight age; run; proc print data=work.wgtadmit; var weight age height fee; where age>30; run;
proc sort data=clinic.admit out=work.wgtadmit;
by descending weight age;
run;
proc print data=work.wgtadmit;
var weight age height fee;
where age>30;
run;