楼主: HaiMM01
1782 1

[问答] 请教base中的64题 [推广有奖]

  • 0关注
  • 1粉丝

已卖:11份资源

大专生

35%

还不是VIP/贵宾

-

威望
0
论坛币
187 个
通用积分
0.8486
学术水平
3 点
热心指数
3 点
信用等级
1 点
经验
946 点
帖子
36
精华
0
在线时间
59 小时
注册时间
2010-7-26
最后登录
2025-6-6

楼主
HaiMM01 发表于 2011-1-27 23:11:04 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
64. The following SAS program is submitted:  
data work.accounting;
length jobcode $ 12;
set work.department;
run;
The WORK.DEPARTMENT SAS data set contains a character variable named JOBCODE with a length of 5.
Which of the following is the length of the variable JOBCODE in the output data set?
A. 5
B. 8
C. 12
D. The length can not be determined as the program fails to execute due to errors.


答案应该是C吧,变量长度应该由第一次出现时的长度决定,这样理解对吗?高人们出来指点一下吧。
二维码

扫码加我 拉你入群

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

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

关键词:Base Department Accounting Determined following 请教 Base

沙发
HaiMM01 发表于 2011-1-28 01:50:01

自己找到答案了

The LENGTH statement enables you to specify the length of a character variable. Since
the LENGTH statement appears before the SET statement, SAS will set the length of
jobcode to 12.

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

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