在坛子里获益匪浅。献上微薄之力:
70太重要了,95%都是里面的,只是选项次序改变了一下,一道新题和一道变体。
name$ ID price
xxxX 12344 80.6
dafdsa 04332 90.0
.......
data ....
set.....
input...... if name = "..." then type = ‘instrument';
else........
选项关键 instruments被trunc掉了,type 这个变量长度没有设置过,有的是instrum, 有的是instruments, 还有instume,instrumen, 忘了默认的CHAR是几位选了最后那个
另外一题变体,x=mdy(15,01,1960) 也不知道是15 Jan 1960 选项有0, 14, 15 这题考的是01/01/1960为起始日,那么15日是多少?我在15和14里面犹豫很久。。。因为忘了起始日是0还是1.
还有一题是因为没有设置Retain, 循环初始值没设置,output出来新的一列total 都是missing.
data WORK.TEST;
set WORK.MEASLES(keep=Janpt Febpt Marpt);
array Diff{3} Difcount1-Difcount3; -实际题目difcount{3} diff1-diff3 ,因为死记的答案所以做错了。小心陷阱
array Patients{3} Janpt Febpt Marpt;
run;
What new variables are created?
A. Difcount1, Difcount2 and Difcount3
B. Diff1, Diff2 and Diff3
C. Janpt, Febpt, and Marpt
D. Patients1, Patients2 and Patients3
我只碰到两题是新面孔,复习的时候囫囵吞枣,看的不是很仔细,一定要对什么时候0,什么时候1,什么时候missing, 搞清楚,考的时候脑子糊涂都在挣扎这些选项。时间绰绰有余,拼命想记全题目,还是枉费,希望对大家有用。