楼主: hailingkatherin
4243 1

关于retain assginment的问题 [推广有奖]

  • 0关注
  • 0粉丝

已卖:13份资源

硕士生

82%

还不是VIP/贵宾

-

威望
0
论坛币
277 个
通用积分
0
学术水平
1 点
热心指数
5 点
信用等级
1 点
经验
164 点
帖子
126
精华
0
在线时间
87 小时
注册时间
2015-1-18
最后登录
2016-5-15

楼主
hailingkatherin 发表于 2015-2-25 16:12:18 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

54.Consider the following data step:
data WORK.TEST;
set SASHELP.CLASS(obs=5);
retain City 'Beverly Hills';
State='California';
run;
The computed variables City and State have their values assigned using two different
methods, a RETAIN statement and an Assignment statement. Which statement
regarding this program is true?
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


请问ABC的问题在哪里呢?请大神在自己解释一下这两个语句的用法,谢谢!
二维码

扫码加我 拉你入群

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

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

关键词:RETAIN ETA MEN RET assignment following assigned values

沙发
vivian1129m 发表于 2019-4-29 08:08:19
我也想知道A和C错在哪里

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-29 08:17