题目
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.
不懂数值型自动转换成字符型后数据长度到底怎么变?
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,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
- 1大年初一没下雪 这篇文章里,“我”对父女俩的感情有什么变化
- 2已知曲线C x=跟号3+2cosO y=1+sinO 求将曲线化为普通方程 求该曲线在以直角系座标原点为极点,x轴为非负半轴为极轴的极座标系下的极座标方程.
- 3INTERNATIONAL SCHOOL汉语是什么意思
- 4独立战争为美国资本主义发展扫清什么障碍
- 5自动扶梯以匀速由下往上行驶,两个性急的孩子嫌扶梯走得慢,于是在行驶的扶梯上,男孩每秒钟向上走1梯级,女孩每3秒钟走2梯级.结果男孩用50秒到达楼上,女孩用60秒到达楼上.该扶梯
- 66X80%X(x+24)(1+10%)=(6+0.6)X(80%+5%)x 为什么我怎么算答案都不是384?
- 7把24÷6=4和9×4=36合成综合算式
- 8My dream job is desigener简单的英语作文,只要80字,
- 9用剪刀将长方形纸片沿着一条直线剪成两部分,并使这两部分既能拼成平行四边形又能拼成三角形或梯形,如何剪
- 10如何使用matlab求出两条直线的夹角?每条直线由两个点组成.
热门考点