全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2055 7
2011-11-09
The following SAS program is submitted:
data work.AreaCodes;
Phonenumber=3125551212;
Code='('!!substr(Phonenumber,1,3)!!')';
run;
Which one of the following is the value of the variable Code in the output data set?
a. (  3)
b. (312)
c. 3
d. 312
为什么答案是a呢?
二维码

扫码加我 拉你入群

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

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

全部回复
2011-11-9 15:48:03
Becuase the numeric variable has been convert to character variable,the length is 12.the format is best12.
二维码

扫码加我 拉你入群

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

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

2011-11-9 16:15:28
大哥,能详细点吗?哪个!!符号是什么用的?
二维码

扫码加我 拉你入群

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

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

2011-11-9 17:28:40
字符变量默认是12位,从给的数值变量到字符变量的格式改变中系统貌似在左面添加了一些空格补足12位。
二维码

扫码加我 拉你入群

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

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

2011-11-10 11:48:06
那4个感叹号是干嘛的?
二维码

扫码加我 拉你入群

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

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

2011-11-10 12:50:09
两个感叹号是连接福
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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