PROC SORT DATA = input-SAS-data-set < OUT = output-SAS-data-set >; BY <DESCENDING> by-variable(s); RUN; |
◀예제▶ sashelp.class를 age 오름차순으로 먼저 정렬하고, Age가 같은 그룹 내에서는 name 내림차순으로 정렬. 결과를 work.class 로 생성.
PROC SORT DATA=sashelp.class OUT=class;
BY age descending name;
RUN;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.