我考前把63里面几道left join/full join/right join的题 各种outer join轮换 run了一遍code 看下结果
这样比较规律找到了 出新题也都能应对 推荐有时间的同学这样做 对加深记忆很有帮助
特地把鸡精分享一下 考了62道题 回忆了60道左右 考到proc sort 和 outer join的特别多 反反复复
下面是鸡精
==================================================
填空题
1.首先给出一段程序 让补全下面程序实现相同结果 outerunion ________
这个只能填corr
2. 先outer join 然后avg(num) 最后返回6和8 所以average是7
3. 先用%let语句定义了两个macro variable 然后再在macro中定义了一个globalmacro
给出log中显示的三个global macro variable 补全程序%put ________ 填_GLOBAL_
4.hash object 具体题目见1.9机经 填HashAlpha
选择题
5.一道新题
想要输出 title “XXXXX A&M XXXXXX”; 要定义macro variable来实现
选项里面有%sysfunc(title())
%str(title “XXXXX A&M XXXXXX”;)
%nrstr();
%bquote();
至今没有figure out答案
6.proc fcmp
选cmplib 具体程序详见11/02/2014机经
7.%let this_year=%substr(&sysdate9.,6);
%letnext_year=%this_year+1;
%letcheck_year=%eval(&next_year<2016);
%puttwo years after this year is &next_year+1;
%put&check_year;
假设系统时间是01JAN2013 选择log里面的输出
答案是D. two years after this year is 2013+1+1
1
8. A data set has 200 million observationsand 300 character variables.
compress 方法 options 四个选项都是以compress开头
选 compress yes;
9. A data set has 200,000 observations and300 variables, compressed.
If you need 20% of character observations,what method can minimize computer resource usage?
我选where
10. Given the data set one:
Rep Cost
SMITH 20
SMITH 40
JONES 10
SMITH 60
JONES 10
Given the code:
proc sql;
selectRep, sum(cost)
fromone
groupby Rep
orderby Rep;
quit;
选output
应该选 JONES 20
SMITH 120
11. 11/02/2014 中的 5
选 keep=option in set statement
12. 11/02/2014 中的6
选i j output
1 1 1
1 2 2
2 1 .
2 2 .
13. 11/02/2014 中的13
考察proc sort (drop=) nodupkey;
14. 11/02/2014中的 15
15. 05/11/2015中的 8
16. 05/11/2015 中的 9 答案是 D. callsymputx (‘num’,Califonia);
17. 05/11/2015 中的 12 答案是400 考察right join
18. 05/11/2015 中的 13 给出log程序 问options 选mlogic
19. 05/11/2015中的 14 只有一个选项是以(select开头的
20. 05/11/2015 中15的变形
题干是: Which option instructs SAS to use a specific index for where statement?
答案是 IDXNAME=
21. 05/11/2015 中的 16
答案是选 Charlie
Osmer
另外的都是63题中的 我写成了pdf的形式和上面提到的我用到的重要的鸡精一块打包
另外2014 11月2日的鸡精在这里
http://wenku.baidu.com/link?url=WEsBTiDYPBGx2lTlZBPSXJXyci9H56OMH9_GmaX5db68JIKqW65PD0ZkxcXK7SRVpC2Mgx5XtG2dlJlXJwubPTqYYjOyXw2RV7Z2ojI0Dz7
售价1论坛币