BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sasphd
Lapis Lazuli | Level 10

Hello,

I want to joint some tables.

table 1

A     B     C

1     2     5    

2     9     6

5     5     6

table2

A     B     C

8     9     9    

5     6     3    

2     1     3    

JOINT TABLE THAT I WANT

A     B     C

1     2     5    

2     9     6

5     5     6

8     9     9    

5     6     3    

2     1     3

1 ACCEPTED SOLUTION

Accepted Solutions
stat_sas
Ammonite | Level 13

data want;

set table1 table2;

run;

View solution in original post

3 REPLIES 3
stat_sas
Ammonite | Level 13

data want;

set table1 table2;

run;

PGStats
Opal | Level 21

Join is reserved for something else. What you want is concatenate:

data join;

set table1 table2;

run;

PG

PG
Ksharp
Super User

select * from table1

union all

select * from table2

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1421 views
  • 0 likes
  • 4 in conversation