全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1587 3
2015-09-21
合并两个数据集
1.png
2.png
数据类型不一样,要给他们合并,用sql
自己编的程序是这样
复制代码
有error 显示
ERROR: Column 2 from the first contributor of UNION ALL is not the same type as its counterpart from
       the second.
ERROR: Column 3 from the first contributor of UNION ALL is not the same type as its counterpart from
       the second.
ERROR: Column 4 from the first contributor of UNION ALL is not the same type as its counterpart from
       the second.

但是corr 不是可以合并不是同一个类型的么
3.png
这里的corr也不是蓝色的

改成outer union corr 还是不行

请教各位大牛!!!








二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-9-28 08:40:58
用proc append /force 试下
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-9-28 11:22:46
你要先用data步把第一个数据里的变量转化成字符型后在合并
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-9-29 15:53:38
wwwguilichao 发表于 2015-9-28 11:22
你要先用data步把第一个数据里的变量转化成字符型后在合并
嗯 问题解决了 谢谢
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群