楼主: ybz12003
1196 1

[问答] SAS ADV Questions? [推广有奖]

  • 0关注
  • 0粉丝

初中生

9%

还不是VIP/贵宾

-

威望
0
论坛币
82 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
1264 点
帖子
11
精华
0
在线时间
6 小时
注册时间
2016-11-12
最后登录
2017-4-20

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

7.  Why D?  I think A and D are both wrong.

Which one of the following programs contains a syntax error?

A.      proc sql;

select product.*, cost.unitcost, sales.quantity

from product p, cost c, sale s

where p.item = c.item and p.item = s.item;

quit;

B.      proc sql;

select product.*, cost.unitcost, sales.quantity

from product , cost , sale

where product.item = cost.item and product.item = sales.item;

quit;

C.      proc sql;

select p.*, cost.unitcost, sales.quantity

from product as p , cost as c , sale as s

where p.item = c.item and p.item = s.item;

quit;

D.      proc sql;

select p.*, cost.unitcost, sales.quantity

from product , cost , sale

where product.item = cost.item and product.item = sales.item;

quit;



14. Why D?

Consider the following SAS log:

229 data sasuser.ranch sasuser.condo / view = sasuser.ranch;

230 set sasuser.houses;

231 if style='RANCH' then output sauser.ranch;

232 else if style='CONDO' then output sasuser.condo;

233 run;

NOTE: DATA STEP view saved on file SASUSER.RANCH. NOTE:

A stored DATA STEP view cannot run under a different operating system.

234 235 proc print data = sasuser.condo;

ERROR: File sasuser.condo data does not exist.

236 run;

NOTE: The SAS system stopped processing this step because of errors.


Which one of the following explains why the PRINT procedure fails?

A. sasuser.condo is a stored DATA STEP program.

B. A SAS data file and SAS data view cannot be created in the same DATA STEP.

C. A second VIEW= sasuser.condo OPTION was omitted on the DATA statement.

D. The view sasuser.ranch must be processed before sasuser.condo is created.


[size=14.6667px]21. Why D not C?

[size=14.6667px]The following SAS program is submitted:

[size=14.6667px]%let lib = %upcase (sasuser);

[size=14.6667px]pro sql;

[size=14.6667px]select nvar from dictonary.tables

[size=14.6667px]where libname = "&lib";

[size=14.6667px]quit;

[size=14.6667px]Given that several SAS data sets exist in the SASUSER library, which one of the following is generated as output?

[size=14.6667px]A.      no result set

[size=14.6667px]B.      a syntax error in the log

[size=14.6667px]C.      a report showing the names of each table in SASUSER

[size=14.6667px]D.      a report showing the number of columns in each table in SASUSER



二维码

扫码加我 拉你入群

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

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

关键词:questions question Quest tions Est following programs product error

沙发
Hyquid5 发表于 2016-11-20 06:54:25 来自手机 |只看作者 |坛友微信交流群
把online tour或者prep guide的相关内容看一遍吧,然后就知道了。

使用道具

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

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

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

GMT+8, 2024-4-19 22:11