SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 778|回复: 0
打印 上一主题 下一主题

sas 问题求助

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2012-1-12 01:53:22 | 只看该作者

sas 问题求助

文件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;
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2025-5-6 23:32 , Processed in 0.066694 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表