BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] KEEP/DROP 문

Started ‎10-26-2021 by
Modified ‎10-26-2021 by
Views 407
  • output SAS data set에서 필요한 변수만 선택하거나 불필요한 변수를 제거할 때 사용.
  • DATA step 내 위치는 상관 없음.

KEEP 변수() ;

또는

DROP 변수() ;

◀예제▶ output data set 에서 height 와 weight 변수 제거.

DATA class;

DROP height weight ;

SET sashelp.class;

RUN;

Version history
Last update:
‎10-26-2021 04:46 AM
Updated by:
Contributors

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Article Labels
Article Tags