楼主: xiaopingN
3598 1

[学习分享] SAS base US 2/16/2019 机经 [推广有奖]

  • 0关注
  • 2粉丝

博士生

68%

还不是VIP/贵宾

-

威望
0
论坛币
897 个
通用积分
20.3460
学术水平
84 点
热心指数
81 点
信用等级
59 点
经验
16318 点
帖子
184
精华
0
在线时间
481 小时
注册时间
2019-2-4
最后登录
2023-4-16

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

考了70题中的3 6 9 11 15 16 17 20 21 27 28 32 34 3537 40 42 434445 48525657586061626365676970

1.       ODS CSVALL FILE='filename.csv';

… SAS code …

ODS CSVALL CLOSE; PDF

2.      ods html file=“ xx”

proc print data=xx

proc freq xx

output几个, 我选2


3.      选择有几个variable 的命名正确,其中有两个是数字开头,错误,所以答案是2


4.      total=total+? 然后输出里有一列total应该全为missingvalue,因为total未赋初

始值


5.      题43 的变形题ship_date 变为char,input 和put的转换问题,由于月份全拼出来了,日期变character的 答案是PUT(date, worddate20.)

6.      

we want to wrap the label AAAA*BBBB,选哪个?split(*)

7.      

If _N_=1, then total=0; else total=(A+B); 答案是total 第一个值为零,其他为A+B

8.      data test1;

set test2 end=eof;

input var1;

var1=eof;

run;

var1 值是多少? 1

9.      data new;

Amount =4;

If Amount=4

then word="FOUR";

If Amount=7

then word="Seven";

Else if word="None!!!";

Amount=7;

run;

10.  每年人口以2%速度增长,要输出2012年到2021年的所有结果。除了doyear=2012 to 2021 还要在end 前加output才能保证每年都有

11.  Sort by 填空: ascending expenses withinEmplyID;

12.  排序里面by variable1 variable2 descendingdate variable4;答案是descending只作用在紧跟其后的date

13.  有一个数据表叫temp1,里面有EmpID,Name, Dept. 有50个observation

还有一个数据表叫temp2 里面有EmployeeID (注意这里变量名不一样), Name, Dept. 4observation然后程序是

data temp;

set temp1 temp2;

run;

问你set a b合并之后的新dataset有几个变量,答案是4

14.   题57 的变形:显示结果为每个月中的第几天,而不是星期几。选项有day(),weekday(), getday(), DayofMonth()

15.  这题大家一定要记住! 要不上场看到死磕C跟D,像我一样

data WORK.NEW;

set WORK.OLD;

Count+1;

run;

The varaible Count is created using a sumstatement. Which statement regarding this variable is

true?

A. It is assigned a value 0 when the datastep begins execution.

B. It is assigned a value of missing whenthe data step begins execution.

C. It is assigned a value 0 at compiletime.

D. It is assigned a value of missing atcompile time.

Answer: C

16.  题42的变形题。填空题,给出Pos=find(‘USAustrilia....','US','i', 5) 的具体数值,答案是填5

17.  by destination descending revenue;D. FRA 75962

18.  Unless specified, which variables and datavalues are used to calculate statistics in

the MEANS procedure? non-missing numericvariable values only

19.  if jobcode = 'Chem2',then description = 'SeniorChemist';

else description = 'Unknown';

考变量值的大小写有区别

20.  length of the variable :SETstatement 在the LENGTH statement前面, SET statement起作用.

21.  题20考了format length , 在SET statement前面的话, format起作用。

22.  题35的变形题。果然最后一行变成了 else outputWORK.OTHER。答案是2 2 1

23.  题27 的变形题。By Day descending Month


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:SAS base Base Description observation destination

已有 1 人评分热心指数 收起 理由
eijuhz + 1 精彩帖子

总评分: 热心指数 + 1   查看全部评分

沙发
zy_4613 发表于 2019-3-1 12:17:22 |只看作者 |坛友微信交流群
感谢分享,记得太仔细了,谢谢

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-25 19:26