显示热门

深色模式

字体大小|

搜索
ADVERTISEMENT
返回
  • 浏览过的版块

1
ADVERTISEMENT
Huaren
等级大校
威望7
贴子6001
魅力8352
注册时间2004-01-27

icysue

查看全部

请教两个sas题

1388

3

2007-11-01 16:36:00

1. the following SAS program is submitted


data work.test;


 First='Ipswich, England';


 City_Country=substr(First,1,7)!!','!!'England';


run;


which one of the following is the length of the variable City_Country in the
output data set?


A. 6 B. 7 C. 17 D. 25


2. The following SAS program is submitted:


data work.test;


 Title='A Tale of two cities, Charles J.Dickens';


 Word=scan(title,3,',');


run;


Which one of the following nisthe value of the variable WORD in the output
data set?


A. T B. of C. Dickens D.' ' (missing character value)


多谢!

Huaren
等级大校
威望7
贴子6001
魅力8352
注册时间2004-01-27

icysue

查看全部

2007-11-02 00:10:00

查看了答案,d b
我都不能理解
第一个我觉得length应该是200,是scan的default length
第二个我和你一致,因为第三个seperater不存在,所以是missing value
Huaren
等级大校
威望7
贴子6001
魅力8352
注册时间2004-01-27

icysue

查看全部

2007-11-02 00:12:00

第一题,后面是没有空格

初始化编辑器...

到底了