BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] 반복문과 배열 – 배열

Started ‎11-11-2021 by
Modified ‎11-11-2021 by
Views 366
  • 특정 조건을 만족하는 관측치만 선택할 때 사용
  • where 표현식은 피연산자(변수, 상수)와 연산자로 구성.
    , 사용되는 변수는 input Data Set에 존재하는 변수만 가능
  • Proc Step, Data Step에서 사용 가능함.

WHERE where-표현식 ;

 

◀예제▶

DATA class;

SET sashelp.class;

Where ( sex = ‘여’ and age ge 13 ) or name like ‘%스’ ;

/* 성별이 이고 나이가 13 세 이상인 자료이거나

    이름이 로 끝나는 자료를 선택 */

RUN;

Version history
Last update:
‎11-11-2021 04:03 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