楼主: moraine123
1780 4

[问答] sas base 70 题中第70题 求教 [推广有奖]

  • 0关注
  • 0粉丝

高中生

47%

还不是VIP/贵宾

-

威望
0
论坛币
12 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
756 点
帖子
43
精华
0
在线时间
18 小时
注册时间
2014-10-30
最后登录
2019-5-7

楼主
moraine123 发表于 2014-11-22 11:02:24 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

70.After a SAS program is submitted, the following is written to the SAS log:

  105    data WORK.JANUARY;

  106    set WORK.ALLYEAR(keep=Product Month Quantity Cost);

  107    if Month='JAN' then output WORK.JANUARY;

  108    Sales=Cost * Quantity;

  109    drop=Month Quantity Cost;

                      -----

                      22

  ERROR 22-322: Syntax error, expecting one of the following: !,

                !!, &, *, **, +, -,

  , <=, <>, =, >, >=,

                AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL,

                NOTIN, OR, ^=, |, ||, ~=.

  110  run;

What data set option could be attached to WORK.JANUARY to replace the DROP statement that generated the error in the log?

     A. (drop Month  Quantity  Cost)

     B. (drop Month, Quantity, Cost)

     C. (drop=Month, Quantity, Cost)

     D. (drop=Month  Quantity  Cost)

这道题是不是应该选A呀,drop statement 不需要等号,而且也不应该有括号。D选项是应该用在SET 语句后面的。

二维码

扫码加我 拉你入群

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

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

关键词:SAS base Base statement following generated following written error ERROR

沙发
血羽神恋 在职认证  发表于 2014-11-22 20:05:07
人家就是让你用 data set option  replace the DROP statement啊

你知识点是对的,题目看清楚点就行了

藤椅
eileenhu1990 发表于 2014-11-23 10:49:40
还算是我可以解答的问题。。

这一题楼主要注意两点:
①问题翻译过来是“以下选项哪个能替换原题中的drop statement”而不是叫你写一个drop statement;
②drop和keep语句的语法规则只有两种:括号和等号都没有、括号和等号都有;只有选项D是括号等号都有,其余的都有残缺

板凳
moraine123 发表于 2014-11-24 08:15:11
谢谢楼上两位大神!

报纸
SAS过儿 发表于 2014-11-27 15:36:20
加油共勉加油

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-7 23:31