全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1583 4
2012-08-07
54.Consider the following data step:

data WORK.TEST;
    set SASHELP.CLASS(obs=5);
    retain City 'Beverly Hills';
    State='California';
run;

A. The RETAIN statement is fine, but the value of City will be truncated to 8

bytes as the LENGTH statement has been omitted.

    B. Both the RETAIN and assignment statement are being used to initialize new

variables and are equally efficient. Method used is a matter of programmer preference.

     C. The assignment statement is fine, but the value of City will be truncated

to 8 bytes as the LENGTH statement has been omitted.

     D. City's value will be assigned one time, State's value 5 times.

Answer: D

对D表示不懂


二维码

扫码加我 拉你入群

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

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

全部回复
2012-8-7 15:29:37
RETAIN Statement is compile-time only
二维码

扫码加我 拉你入群

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

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

2012-8-7 15:34:55
赋值语句在执行过程中执行,retain语句在编译阶段赋值一次,执行的时候只是直接从pdv输出到output dataset而已。
二维码

扫码加我 拉你入群

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

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

2012-8-7 15:57:10
hcydlee 发表于 2012-8-7 15:34
赋值语句在执行过程中执行,retain语句在编译阶段赋值一次,执行的时候只是直接从pdv输出到output 大taset而 ...
哇,够深奥,这是哪里的知识啊?!
二维码

扫码加我 拉你入群

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

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

2012-8-8 04:54:05
好解答啊
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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