BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] KEEP/DROP 문

Started ‎10-26-2021 by
Modified ‎10-26-2021 by
Views 713
  • 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:

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Article Labels
Article Tags