BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] DATA SET 결합 - 세로결합

Started ‎10-28-2021 by
Modified ‎10-28-2021 by
Views 847

1. SET 문장

DATA output-SAS-data-set;

SET input-SAS-data-set-1

input-SAS-data-set-2 … … ;

RUN;

 

2. SET 문장 + BY 문장

  • 결합 대상이 되는 SAS data set 의 정렬 상태를 유지시킴.
  • 단, input SAS data set 들이 by 변수로 정렬되어 있어야 함.

DATA output-SAS-data-set;

SET input-SAS-data-set-1

input-SAS-data-set-2 … … ;

BY 변수(s) ;

RUN;

 

◀예제▶

 

DATA work.new;

SET old1 old2 old3;

BY var1;

RUN;

Version history
Last update:
‎10-28-2021 02:55 AM
Updated by:
Contributors

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Article Labels
Article Tags