BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] KEEP/DROP 문

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

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch Now →
Article Labels
Article Tags