BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] KEEP/DROP 문

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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Article Labels
Article Tags