当前位置: > SAS base 认证123题的第79题...
题目
SAS base 认证123题的第79题
The following SAS program is submitted:
data work.products;
Product_Number=5461;
Item = '1001';
Item_Reference=Item||'/'||Product_Number;
run;
Which one of the following is the value of the variable ITEM_REFERENCE in the
output data set?
A.1001/5461
B.1001/ 5461
C..(missing numeric value)
D.The value can not be determined as the program fails to execute due to errors.
answer:B (A和B的区别应该在于/后有空格)
没看懂~(⊙o⊙)…
for Product_Number Character expected but numerical got,so it automatically change it into
Character by using best 12.begining from right.So there are 12-4=8 spaces before 5461
if you put a number which has 12 bytes then there is no space before that number.
不懂数值型自动转换成字符型后数据长度到底怎么变?

提问时间:2021-03-04

答案
不是说得很清楚嘛,数字转成字符串后长度变成12位,不足12位前面补足空格.
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.