刚刚考试完了,pass了。基本都是70题的内容,其中有一些小的变通,下面给大家分享下。
Q 19
The SAS data set WORK.ONE contains a numeric variable named Num and a character variable named Char:
WORK.ONE
Num Char
--- ----
1 23
3 23
1 77
The following SAS program is submitted:
proc print data=WORK.ONE;
where Num=contain(1);
run;
What is output?
A. Num Char
--- ----
1 23
B. Num Char
--- ----
1 23
1 77
C. Num Char
--- ----
1 23
3 23
1 77
D. No output is generated.
答案:D
这题把原来70题里面的Num='1'替换成contain(1),答案不变,contain没这个函数。
还有一题大意是这样的
有work.b,其中变量Char为字符15长。
data a;
length Char $ 20;
set b;
format Char $15.;
run;
问Char最终在work.a里面的length为多少。
其实要区分format概念和length概念,length还是最初声明的20,format不改变其length。
另外,ODS输出考了PDF输出。
对于libref的命名规则也考了,问你以下4个选项有几个是符合规则的。online tutor上面这么说的
libref is 1 to 8 characters long, begins with a letter or underscore, and contains only letters, numbers, or underscores.
暂时想起这么一些,其他的都在70题里面。希望对大家有用。
PS:吐槽一下之前惜败的国内认证,考了3题快捷键的题目(运行、切换窗口、清空注释);还有题目答案就没有对的(在考完后,我自己用SAS跑一遍,出的结果再次证实)。回家果断马上报了global的。所以,再次提醒大家