问两道SAS Base题目40.The following SAS program is submitted:data work.pieces; do while (n lt 6); n + 1; end; run; What is the value of the variable N in the output data set?A.5 B.6 C.7 D..(missing numeric) Answer:B 为什么答案选B?一开始n

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 17:14:24
问两道SAS Base题目40.The following SAS program is submitted:data work.pieces; do while (n lt 6); n + 1; end; run; What is the value of the variable N in the output data set?A.5 B.6 C.7 D..(missing numeric) Answer:B 为什么答案选B?一开始n

问两道SAS Base题目40.The following SAS program is submitted:data work.pieces; do while (n lt 6); n + 1; end; run; What is the value of the variable N in the output data set?A.5 B.6 C.7 D..(missing numeric) Answer:B 为什么答案选B?一开始n
问两道SAS Base题目
40.The following SAS program is submitted:
data work.pieces;
do while (n lt 6);
n + 1;
end;
run;
What is the value of the variable N in the output data set?
A.5
B.6
C.7
D..(missing numeric)
Answer:B
为什么答案选B?一开始n没有被定义啊,在do while里n应该是missing啊.你在n+1的时候才被赋值为0的吧……
48.Given the raw data file CALENDAR:
----|----10---|----20---|----30
01012000
The following SAS program is submitted:
data test;
infile 'calendar';
input @1 date mmddyy10.;
if date = '01012000'd then event = 'January 1st';
run;
What is the value of the EVENT variable?
A.' ' (missing character value)
B..(missing numeric value)
C.January 1st
D.The program fails to execute due to errors.
虽然mmddyy10.的读取长度过长了,但是我在SAS程序上涌datalines的方式试了一下还是能够读取的啊,为什么答案说会有错误?

问两道SAS Base题目40.The following SAS program is submitted:data work.pieces; do while (n lt 6); n + 1; end; run; What is the value of the variable N in the output data set?A.5 B.6 C.7 D..(missing numeric) Answer:B 为什么答案选B?一开始n
40.n+1 的话,系统调用的运算方法跟不一样,不是N=N+1;而是N=SUM(N+1);SUM(N+1)的话,虽然一开始N 没有被赋值,但是系统在进行+1操作时,会直接将缺失值的N自动转化为0来计算.所以答案是6;
48.系统报的错误,如果我没想错的话,应该是if date ='01012000'd then event ='January 1st'; 这里句会出错;错误点应该是date ='01012000'd 这里;改成date='01jan2000'd就可以了.SAS不支持'01012000'd这种格式.至于为什么你自己用datalines的方式尝试了可以,我就不知道了.

问两道SAS Base题目40.The following SAS program is submitted:data work.pieces; do while (n lt 6); n + 1; end; run; What is the value of the variable N in the output data set?A.5 B.6 C.7 D..(missing numeric) Answer:B 为什么答案选B?一开始n 一道sas base programming 的题The following SAS program is submitted: data_null_; set old; put sales1 sales2; run; Where is the output written? A. the SAS log B. the raw data file that was opened last C. the SAS output window or an output file D. base of the base of the palm THE LITTLE SAS BOOK怎么样 SAS sas 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 theout 请教几道SAS advanced题目 几题sas base 123题疑问我没有答案解析,很纠结.先谢谢大神.1. The contents of the raw data file FURNITURE are listed below: ----|----10---|----20---|----30 chair,table chair,couch,table The following SAS program is submitted: data sto 求SAS OnlineTutor 9.1 Base Programming由于这里的限制,可不可以发个链接呀, at the base of...同上 求翻译 I am a base man, base cannot again base the base man.求大神帮助I am a base man, base cannot again base the base man. 什么意思? On the tone of the base fabric 求全等三角形的判定SAS定理的证明题目.. 翻译:color change the bird base form. Please input the base address and length. what is the base word of disbelief?