全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1584 5
2016-02-23
data c200501;
input name$ sex$ math chinese;
cards;
李家富 男 92 98
张丽萍 女 89 106
王春雷 男 86 90
刘刚 有 98 109
张颖 女 80 110
;
run;
data c200501m c200501f;
set c200501;
select(sex);
when('男') output c200501m;
when('女') output c200501f;
otherwise put sex='有错';
end;
drop sex;
run;
请问大神otherwise put sex='有错';是什么意思?为什么运行出错?谢谢!

二维码

扫码加我 拉你入群

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

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

全部回复
2016-2-23 21:58:10
win10 报错。
The SAS Deployment Wizard is not able to proceed with the installation. A possible reason is that the software order you are installing was subsetted from the original order, but the operating system you are installing the software on was not included in the subset process. Provide this error message to the person who gave you the software. If this does not resolve the problem, contact SAS Technical Support for assistance.
查看文件大小应该没有丢包
二维码

扫码加我 拉你入群

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

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

2016-2-23 22:56:12

data c200501;
input name math chinese;
cards;
李家富 男 92 98
张丽萍 女 89 106
王春雷 男 86 90
刘刚 有 98 109
张颖 女 80 110
;
run;
data c200501m c200501f;
set c200501;
select(sex);
when('男') output c200501m;
when('女') output c200501f;
otherwise put sex='有错';

/*这是直接复制你的
问题出在  最后的分号  是英文的;
不是中文的;
*/
二维码

扫码加我 拉你入群

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

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

2016-2-24 09:15:17
多谢!
二维码

扫码加我 拉你入群

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

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

2016-2-24 09:16:00
dogmamongo 发表于 2016-2-23 22:56
data c200501;
input name math chinese;
cards;
多谢!
二维码

扫码加我 拉你入群

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

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

2016-2-24 23:15:05
不是男不是女,就输出 “有错” 到 log
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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