BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Tim_sas_
Obsidian | Level 7

Hello,

 

I have a very basic question but something seems to be wrong with my code.

I would like to merge 3 data sets (Out_1, Out_2, Out_3, please see below). All have exactly the same structure (variables) and I would like to create a merged table that includes all 3 datasets.

 

I have tried the following code:

Data final;
Merge Out_1 Out_2 Out_3;
Run;

There seems to be something wrong with it because the merged file only includes the information from Out_3.

 

I would be very glad if someone could help me out.

 

Many thanks,

 

Tim

 

 

 

Model.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

It sounds like you want SET and not MERGE.

--
Paige Miller

View solution in original post

2 REPLIES 2
PaigeMiller
Diamond | Level 26

It sounds like you want SET and not MERGE.

--
Paige Miller
Tim_sas_
Obsidian | Level 7

Many thanks PaigeMiller, this solved my problem!