BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] 중복되는 관측치 중 1개만 남기고 삭제하는 방법

Started ‎06-07-2021 by
Modified ‎06-07-2021 by
Views 1,764

sort 프로시져에서  nodupkey 옵션을 이용하면 by 문장의 변수에 대해서 중복값을 삭제합니다.

proc sort data=old out=new nodupkey;

by X ; /*       중복되는 변수명 */

run;

Version history
Last update:
‎06-07-2021 09:25 PM
Updated by:
Contributors

sas-innovate-wordmark-2025-midnight.png

Register Today!

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.


Register now!

Article Labels
Article Tags