BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] SET 문

Started ‎10-20-2021 by
Modified ‎10-20-2021 by
Views 246
  • 기 존재하는 SAS data set 이나 EXCEL 파일을 읽을 때 사용.
  • 모든 변수와 모든 관측치를 읽음.

SET input-SAS-data-set;

 

◀예제▶ SAS data set 읽기

 

DATA class;

SET sashelp.class;

RUN;

 

◀예제▶ EXCEL 파일 읽기

 

LIBNAME myxls ‘c:\mydata\class.xls’;

DATA new;

SET myxls.sheet1$n;

RUN;

 

Contributors
Version history
Last update:
‎10-20-2021 09:06 PM
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