注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
上午9.30预约的SAS BASE 考试, 890通过。 准备复习advanced
复习范围:主要是复习70题, 大题我没怎么看机经, 基本上都是很基础的语句。推荐看官网上面的推荐看practice exam, 看little sas 书, 下面我来回忆一下大概题目.google и
有7个project, 包含2个改错 。每个project下面有3-5个小题。.google и
首先创建文件夹输入输出环境. From 1point 3acres bbs
libname cert 'c:/cert/input';
libname results 'c:/cert/output/;
1. 用proc sort 排列一个数据 升序firstname, lastname, 降序age. 问多少的observation的employeeID是多少?
用first.variable和last.variable找到postalCode的最大income, 回答问题。
2, 用libname certXL xlsx 'c:/cert/input/customer11.xlsx'; 导入Excel数据表。 问表的名字是什么 ?运用proc contentd data = cert.Income; run; 看encoding和label是什么?
3. 有一个customer表, 用data step。 提取customerID其中的数字部分存为新的变量IDnumber, 用IDnumber=substr(customID,4,5); 问所有IDnumber的平均数是多少? 用proc means...
4. 有一个表, 数据写入四个不同的表里面 分别是 bed, chair, sofa,还有一个忘记了,用if else,else if。product='BED' output bed; product='CHAIR' output chair; product='SOFA' output sofa; else output (忘了), 问sofa表里有多少observation? bed表里多少observation? 是改错题
5. firstname 遇到(‘Abadom’,'destiny','james','Tao','Zhou')然后count+1, 否则count=0. 是改错题. From 1point 3acres bbs
6. merge one-to-one dataset, 算一个新的变量totalprice
用data results.output19;
merge cert.input19a (in=a) cert.input19b(in=b);
if a and b;
totalprice= pty*price;
run;
问: 不同product的totalprice的和是多少?
7. zflag=0 或1 那道题 不是很记得了。. Χ
最后祝大家通过考试!
|