BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] KEEP/DROP 문

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

KEEP 변수() ;

또는

DROP 변수() ;

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

DATA class;

DROP height weight ;

SET sashelp.class;

RUN;

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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

Article Labels
Article Tags