BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] DATA step 옵션 - DROP / KEEP

Started ‎10-28-2021 by
Modified ‎10-28-2021 by
Views 363
  • Output data set 옵션으로 사용할 경우 Drop / Keep 문장과 동일.
  • Output data set 에 영향을 줌.
  • Input data set 옵션으로 사용할 경우 PDV에 영향을 줌.

SAS data set( KEEP = 변수(들) )

또는

SAS data set( DROP = 변수(들) )

 

◀예제▶

DATA class(keep = name sex);

SET sashelp.class( DROP = height weight ) ;

WHERE age >=13 ;

RUN;

Version history
Last update:
‎10-28-2021 02:52 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