楼主: chasedreamtrue
1702 2

帮忙看一道题 [推广有奖]

  • 0关注
  • 0粉丝

本科生

78%

还不是VIP/贵宾

-

威望
0
论坛币
123 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
781 点
帖子
82
精华
0
在线时间
12 小时
注册时间
2007-7-30
最后登录
2010-10-24

楼主
chasedreamtrue 发表于 2008-8-29 00:09:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
关于length 的概念,例如:First = 'Ipswich, England';City = substr(First,1,7)
;那末的length是First的长,还是substr(First,1,7)的结果后Ipswich的长?

还有这到76题,为何说是200呢?而不是从题目中得出来的长?谢谢
76. The following SAS program is submitted:
data work.test;
Author = 'Agatha Christie';
First = substr(scan(author,1,' ,'),1,1);
run;
Which one of the following is the length of the variable FIRST in the output
data set?
A. 1
B. 6
C. 15
D. 200
Answer: D
二维码

扫码加我 拉你入群

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

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

关键词:following Christie Variable Program England 帮忙

回帖推荐

SignPingGu 发表于2楼  查看完整内容

FIRST as variable, I don't think substr function can change its length.There is kind of difference between the format of variable and the actual value of observation.Such as:Length First $ 200;Set the length of First 200. The length of First does not change unless you reformat it.

本帖被以下文库推荐

沙发
SignPingGu 发表于 2008-8-29 03:20:00
FIRST as variable, I don't think substr function can change its length.

There is kind of difference between the format of variable and the actual value of observation.

Such as:
Length First $ 200;

Set the length of First 200. The length of First does not change unless you reformat it.
已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 3 精彩帖子

总评分: 经验 + 3  论坛币 + 3   查看全部评分

藤椅
rain958 发表于 2008-8-29 08:35:00
你这真的是想考BASE么?
找复习资料,把这个几个函数看下。一切就解决了啊。

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

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