I have data set A & B and they both have an ID column to join on.
I would like to do a inner join and i'm not sure how to do that. I am unable to use a proc sql step because i'm
trying to learn more about data steps and how they are used.
Table A
ID Name
1 Bob
2 Fred
3 Dave
Table B
ID Age
1 30
3 40
I would like my data set to be
ID Name Age
1 Bob 30
3 Dave 40
With this merge it brings back everything from both. Is there an option i'm missing or can't I do that with a merge?
data C ;
merge A B;
by ID ;
run ;
Thank you for an advice