文件1有1个变量
data file1;
input type $;
cards;
a
c
;
run;
文件2有2个变量
data file2;
input type $ description $;
cards;
a a1
a a1
b b1
b b1
b b2
c c1
c c1
c c2
c c3
;
run;
文件3有2个变量
data file3;
input type $ description2 $;
cards;
a a1
a a2
b b1
b b1
b b2
c c1
c c1
c c2
c c3
d d1
d d2
d d3
;
run;
我想通过合并,得出这样的结果,
文件1
type description description2
a a1 a1
a a1 .
a a2
文件2
c c1 c1
c c1 c1
c c2 c2
c c3 c3
要怎么做呢?没有什么头绪?
可以通过
proc sql;
select *
from file1, file2;
quit;