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
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.
[quote="ergoudan":2ydwpdxd]to hopewell
In sum statement, initial value of the variable is 0 rather than missing. The following should show this.
data _null_;
put a=;
a+1;
put a=;
run[/quote:2ydwpdxd]
对头,the little sas book和sas base certification pre guide都是这样说的。