BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] SET 문

Started ‎10-20-2021 by
Modified ‎10-20-2021 by
Views 221
  • 기 존재하는 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;

 

Version history
Last update:
‎10-20-2021 09:06 PM
Updated by:
Contributors

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

Article Labels
Article Tags