全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1723 4
2014-11-22

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 语句后面的。

二维码

扫码加我 拉你入群

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

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

全部回复
2014-11-22 20:05:07
人家就是让你用 data set option  replace the DROP statement啊

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

扫码加我 拉你入群

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

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

2014-11-23 10:49:40
还算是我可以解答的问题。。

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

扫码加我 拉你入群

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

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

2014-11-24 08:15:11
谢谢楼上两位大神!
二维码

扫码加我 拉你入群

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

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

2014-11-27 15:36:20
加油共勉加油
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群