<
查看: 1489| 回复: 8
收起左侧

[统计--软件] SAS BASE (A00-231) 2023/09/05 考试经验分享

牛奶小方 | 显示全部楼层
本楼:   👍  1
100%
0%
0   👎
全局:   2
50%
50%
2

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x

刚刚考完,857飘过,回馈大家。

.1point3acres
个人背景:去年这时候在学校上了一学期SAS的课,完全没学会;暑假用SAS做data management,有所提升。

. Χ
复习时间:不到一个月. Χ


复习资料:
  • SAS Certified Specialist Prep Guide (做题前最好通读一遍)
  • 70题,50题(70题做了3-4遍不止,50题刷了2遍)
  • lab机经(敲了4-5遍不止)

.1point3acres

考试地点:GA某test center (线下考试)
考试时长:150分钟
考试费用:$180,学生折扣价$75
考试题目:总共39道题,20道lab,19道单选题


考题回忆:
  • transpose考了3道题(这个知识点我没复习),1道lab 2小问;
. check 1point3acres for more.
选择题:transpose搭配class, var, IDlabel, label中的哪一个得到某个结果(建议搞清楚这几个的区别).1point3acres
lab:把一个dataset 变成题目给出的样子,其实就是transpose,by City
  • macro variable调用考了3道题,1道填空题,1道lab 2小问(macro的内容我也没看 :-I )

填空题:如何调用macro variable “amount”: &, %, etc.  
lab:改错where Team="%TeamCity" (TeamCity是先前设置好的,dataset里没有这两个变量)
  • merge,by

lab:两个dataset A和B,新建3个datasets,members包含A和B match的部分,Numbers包含A,和B中没有的,Phones包含B不包含A
data members;
merge A (in=a)
           B (in=b);. 1point 3 acres
by MemberID;
if a and b;
run;


data Names;
merge A (in=a).google  и
           B (in=b);
by MemberID;
if a and not b;
run;


data members;
merge A (in=a).
           B (in=b);
by MemberID;
if not a and b;
run;
  • proc import中replace的作用(选择题):

proc import datafile = '(file location)'. 1point3acres.com
out = work.import. 1point3acres
dbms = tab
getnames = yes;
run;
如果work.import已经存在了,最后的output会是:(答案是B)
A. overwrite原来的文件
B. 无法创建新文件,会有note写在log里. 1point3acres.com
C. 自动创建了一个新的文件work.import_2
D.  (忘记了)


添加一个replace就可以实现overwrite了
proc import datafile = '(file location)'. 1point3acres
out = results.output. .и
dbms = tab
replace;
run;
  • lab改错:Age between 40 and 45 改为 40<=Age<=45
. 1point 3 acres
.

70题原题或改编:
  • “keep=”用在括号里,跟在dataset name后面;“keep” 单独为命令句;一道选择题,同时出现两种用法,问哪个正确

正确用法:
data df (keep= var_name);
keep var_name;
run;
如何打开csv文件(选择题)
ods csvall file=" ";
proc print;. Χ
run;. .и
ods csvall;
  • 原题:

The following SAS program is submitted: B
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.. check 1point3acres for more.
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;. check 1point3acres for more.
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.--
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. 1point3acres
D. in a SAS dataset in a permanent SAS data library
  • The SAS data set Fed.Banks contains a variable Open_Date which has
    been 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.. From 1point 3acres bbs
proc print data=SASUSER.HOUSES label;-baidu 1point3acres
label Open_Date "Starting Date"; run;
B.
proc print data=SASUSER.HOUSES label;. 1point3acres
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";
run;
  • 如何避免造成字符变量被截断 (答案:用length语句规定长度)
  • The following SAS program is submitted:
.1point3acres
data WORK.PRODUCTS; Prod=1;
do while(Prod LE 6);
Prod + 1; end;. 1point 3acres
run;
What is the value of the variable Prod in the output data set?
A. 6
B. 7
C. 8. Waral dи,
D. . (missing numeric)
  • 如何打开csv文件

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;. 1point 3acres
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的值分别是什么。

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;. check 1point3acres for more.
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);. 1point 3acres
if X < 10 then X=1;
else if X >= 10 AND X LT 20 then X=2; else X=3;
run;. 1point 3 acres
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. check 1point3acres for more.
A. X would get a value of 1.
B. X would get a value of 3.
C. X would retain its original value of missing.. Waral dи,
D. This step does not run because of syntax errors.
missing <0
. ----
. 1point3acres
(只能想起这些了)


考前准备:-baidu 1point3acres
官网最好做一下模拟考试,我没做完,只是看了一下怎么设置环境
(非常重要‼️)看一下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,熟悉环境,不计入考试时长
. 1point3acres.com


推荐几个帖子:
https://www.1point3acres.com/bbs/thread-623110-1-1.html
https://www.1point3acres.com/bbs/thread-684743-1-1.html


感谢所有分享经验的小伙伴,谢谢你们的帮助让我少走了很多弯路!
如果有帮助,希望多多加米,谢谢各位啦!


祝考试顺利,前程似锦!

评分

参与人数 3大米 +27 收起 理由
Eveanny + 1 给你点个赞!
bryanjhy + 25 给你点个赞!
南酱敲可爱的 + 1 赞一个

查看全部评分


上一篇:SAS Baes 19/08/2023 满分通过经验分享
下一篇:SAS-BASE-(A00-231) 2023/09/08 考试经验分享
本楼:   👍  1
100%
0%
0   👎
全局:   5
100%
0%
0
谢谢楼主分享 加米啦
回复

使用道具 举报

 楼主| 牛奶小方 2023-9-6 01:35:08 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   2
50%
50%
2
本帖最后由 牛奶小方 于 2023-9-5 17:41 编辑

我用的资料都放在这里啦
链接: https://pan.baidu.com/s/16W8pU3LL6w8J4_Oyr0eNjg 提取码: n2q6
回复

使用道具 举报

xbawang 2023-9-8 14:43:01 来自APP | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   0
0%
0%
0
你的记忆里真好啊😆 记得这么多
回复

使用道具 举报

 楼主| 牛奶小方 2023-9-9 23:31:05 来自APP | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   2
50%
50%
2
xbawang 发表于 2023-09-07 23:43:01.google  и
你的记忆里真好啊 记得这么多
哈哈哈 考完赶紧写🤣
回复

使用道具 举报

本楼:   👍  0
0%
0%
0   👎
全局:   0
0%
0%
0
求问一下 lab机经是哪些呀?网盘资源里好像没有看到qaq
回复

使用道具 举报

 楼主| 牛奶小方 2023-9-15 00:05:59 来自APP | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   2
50%
50%
2
微信用户_b733be1 发表于 2023-09-12 14:37:59
求问一下 lab机经是哪些呀?网盘资源里好像没有看到qaq
我重新上传啦!
回复

使用道具 举报

 楼主| 牛奶小方 2023-9-15 00:06:28 来自APP | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   2
50%
50%
2
非常感谢!
回复

使用道具 举报

本楼:   👍  0
0%
0%
0   👎
全局:   0
0%
0%
0
非常感谢~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表