BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] Data Step 에서 두 개 이상의 Datasets 으로 저장하는 방법은?

Started ‎05-24-2021 by
Modified ‎05-24-2021 by
Views 847

아래와 같이 조건식을 이용해서 여러 개의 데이터셋으로 생성하도록 하면 됩니다.

 

)

data data1 data2 data3;

     set sashelp.class;

     if value = ‘v1’ then output data1;

     else if value = ‘v2’ then output data2;

     else if value = ‘v3’ then output data3;

run;

 

 

 

Version history
Last update:
‎05-24-2021 10:11 PM
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