注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
刚刚考完,857飘过,回馈大家。
个人背景:去年这时候在学校上了一学期SAS的课,完全没学会;暑假用SAS做data management,有所提升。
-baidu 1point3acres
复习时间:不到一个月-baidu 1point3acres
复习资料:- SAS Certified Specialist Prep Guide (做题前最好通读一遍)
- 70题,50题(70题做了3-4遍不止,50题刷了2遍)
- lab机经(敲了4-5遍不止)
考试地点:GA某test center (线下考试)
考试时长:150分钟 .google и
考试费用:$180,学生折扣价$75
考试题目:总共39道题,20道lab,19道单选题
考题回忆:- transpose考了3道题(这个知识点我没复习),1道lab 2小问;
选择题:transpose搭配class, var, IDlabel, label中的哪一个得到某个结果(建议搞清楚这几个的区别)
lab:把一个dataset 变成题目给出的样子,其实就是transpose,by City- macro variable调用考了3道题,1道填空题,1道lab 2小问(macro的内容我也没看 :-I )
填空题:如何调用macro variable “amount”: &, %, etc. ..
lab:改错where Team="%TeamCity" (TeamCity是先前设置好的,dataset里没有这两个变量)
lab:两个dataset A和B,新建3个datasets,members包含A和B match的部分,Numbers包含A,和B中没有的,Phones包含B不包含A
data members;. From 1point 3acres bbs
merge A (in=a)
B (in=b);
by MemberID;
if a and b;
run;
data Names;
merge A (in=a)
B (in=b);
by MemberID;
if a and not b;
run;
. .и
data members;
merge A (in=a). From 1point 3acres bbs
B (in=b);. .и
by MemberID;
if not a and b;-baidu 1point3acres
run;- proc import中replace的作用(选择题):
proc import datafile = '(file location)'
out = work.import
dbms = tab
getnames = yes;
run;
如果work.import已经存在了,最后的output会是:(答案是B)
A. overwrite原来的文件
B. 无法创建新文件,会有note写在log里
C. 自动创建了一个新的文件work.import_2
D. (忘记了)
. ----
添加一个replace就可以实现overwrite了
proc import datafile = '(file location)'
out = results.output
dbms = tab
replace;
run;- lab改错:Age between 40 and 45 改为 40<=Age<=45
. 1point 3 acres
. Waral dи,
70题原题或改编:- “keep=”用在括号里,跟在dataset name后面;“keep” 单独为命令句;一道选择题,同时出现两种用法,问哪个正确
正确用法:
data df (keep= var_name);
keep var_name; ..
run;
如何打开csv文件(选择题)
ods csvall file=" ";. 1point3acres
proc print;. check 1point3acres for more.
run;
ods csvall;-baidu 1point3acres
The following SAS program is submitted: B. 1point 3 acres
data WORK.DATE_INFO; X='04jul2005'd; DayOfMonth=day(x); MonthOfYear=month(x); Year=year(x);
run;
What types of variables are DayOfMonth, MonthOfYear, and Year?
. ΧA. DayOfMonth, Year, and MonthOfYear are character.
B. DayOfMonth, Year, and MonthOfYear are numeric.
C. DayOfMonth and Year are numeric. MonthOfYear is character. D. DayOfMonth, Year, and MonthOfYear are date values.- 用哪种format可以实现转换:04/11/2011变为APR11 (答案:mondd7.)
- by Postcode City descending ID State,问“descending”对哪些变量起效(答案:only ID)
- The following SAS program is submitted: B
data WORK.TEST;
set WORK.PILOTS;
if Jobcode='Pilot2' then Description='Senior Pilot'; else Description='Unknown';
run;
The value for the variable Jobcode is: PILOT2.What is the value of the variable Description?
A. PILOT2.1point3acres
B. Unknown
C. Senior Pilot
D. ' ' (missing character value)- A user-defined format has been created using the FORMAT procedure.How is it stored? A
A. in a SAS catalog
B. in a memory resident lookup table
C. in a SAS dataset in the WORK library
D. in a SAS dataset in a permanent SAS data library- The SAS data set Fed.Banks contains a variable Open_Date which has
. 1point3acresbeen assigned a permanent label of "Open Date". Which SAS program temporarily replaces the label "Open Date" with the label "Starting Date" in the output? B
A.
proc print data=SASUSER.HOUSES label;
label Open_Date "Starting Date"; run;
B.
proc print data=SASUSER.HOUSES label;
label Open_Date="Starting Date"; run;
C.
proc print data=SASUSER.HOUSES;
label Open_Date="Starting Date"; run;
D.
Xing Bob Jorge
proc print data=SASUSER.HOUSES; Open_Date="Starting Date";-baidu 1point3acres
run;- 如何避免造成字符变量被截断 (答案:用length语句规定长度)
- The following SAS program is submitted:
data WORK.PRODUCTS; Prod=1;
do while(Prod LE 6);
Prod + 1; end;. From 1point 3acres bbs
run;
What is the value of the variable Prod in the output data set?
A. 6
B. 7
C. 8. From 1point 3acres bbs
D. . (missing numeric). .и
ods csvall file='c:\test.cvs';
proc print data=WORK.ONE;
ods csvall close;- data WORK.ALL;
merge WORK.EMP_NAME(in=Emp_N)
WORK.EMP_DEPT(in=Emp_D); by Empid;
if (Emp_N and not Emp_D) or (Emp_D and not Emp_N); run;
How many observations are in data set WORK.ALL after submitting the program?
A. 1 B. 2 C. 3 D. 5
lab原题或原题改编:- 为Excel文件创建library:libname te xlsx 'c:\cert\input\test1.xlsx';
易错点在于name ‘te’要写在引擎‘xlsx’前面,记得加引擎‘xlsx’!- 数据集sashelp.class的属性里,encoding和lebel的值分别是什么。
. Waral dи,
proc contents data = cert.input04;
run;
答案为wlatin1 Western (Windows)和Student Data。- proc sort
- 把fullname(e.g., Franklin, Steve)拆分为lastname和firstname
lastname=scan(fullname, 1, ' , ')
firstname=scan(fullname, 2, ' , '). ----
找出lastname出现次数最多的,出现了几次
proc freq;
var lastname;
run;- worksheet name的引用,含有特殊字符的名字需要加' 'n
proc print data = te.'sheet BB'n;.
run;- Consider the following data step:
data WORK.NEW;
set WORK.OLD(keep=X);
if X < 10 then X=1;
else if X >= 10 AND X LT 20 then X=2; else X=3;
run;
In filtering the values of the variable X in data set WORK.OLD, what new value would be assigned to X if its original value was a missing value? A
A. X would get a value of 1.
B. X would get a value of 3.. Waral dи,
C. X would retain its original value of missing.
D. This step does not run because of syntax errors.
missing <0. .и
(只能想起这些了)
.--
考前准备:
官网最好做一下模拟考试,我没做完,只是看了一下怎么设置环境
(非常重要‼️)看一下SAS官方提供的指导视频,完全再现了考试环境
https://communities.sas.com/t5/SAS-Communities-Library/Tips-and-Strategies-for-the-A00-231-SAS-Base-Programming/ta-p/582838
携带两个ID证件,要求有个人签名,我带的驾照和护照;提前半小时进入考场
我的考点中途是允许去卫生间的,但是考试计时不停止
. 1point3acres
Tips:- 考点电脑非常非常非常卡,ctrl+V用不了,但是可以鼠标右键复制粘贴(这速度还不如手打)
- 提供SAS 9.4, SAS Studio, SAS Enterprise,我用的SAS Studio,输入首字母有提示
- 考前会给10分钟设置libname,熟悉环境,不计入考试时长
推荐几个帖子:
https://www.1point3acres.com/bbs/thread-623110-1-1.html
https://www.1point3acres.com/bbs/thread-684743-1-1.html
感谢所有分享经验的小伙伴,谢谢你们的帮助让我少走了很多弯路!
如果有帮助,希望多多加米,谢谢各位啦!
. ----
祝考试顺利,前程似锦! |