BookmarkSubscribeRSS Feed

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

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

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

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