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

Hi all,

 

I am having problem in combining two tables with different no. of columns.

compare_y1y1dbeta
11111100
1115000
11117201
1113700
11163901
1112000

 

 

compare_y2y2d1beta1
818100
8124001
8183101
8125601
8189001
815770

1

 

Now if I type command:

 

data table3;
                 set tabel1 table2;
                 run;

 

 I dont have the table3 I want.

 

Any help i can have table3 like this?

 

compare_y1y1dbetacompare_y2y2d1beta1
11111100818100
11150008124001
111172018183101
11137008125601
111639018189001
11120008157701

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
novinosrin
Tourmaline | Level 20

Are you looking for one to one merge?

 

data want;

set table1;

set table2;

run;

or

 

data want;

merge table1 table2;

run;

View solution in original post

2 REPLIES 2
novinosrin
Tourmaline | Level 20

Are you looking for one to one merge?

 

data want;

set table1;

set table2;

run;

or

 

data want;

merge table1 table2;

run;

jeka1212
Obsidian | Level 7
Many thanks Proc Star. Much appreciated

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 792 views
  • 0 likes
  • 2 in conversation