[size=12.000000pt]
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 dataset?
[size=12.000000pt]A. 1 B. 6 C. 15 D. 200
[size=12.000000pt]Answer: D
[size=12.000000pt]
然后我跑了如下的程序:
data test;
Author = 'Agatha Christie';
First = substr(scan(author,1,' ,'),1,1);
run;
proc datasets;
contents data= test;
run;
结果如下
Alphabetic List of Variables and Attributes | |||
# | Variable | Type | Len |
1 | Author | Char | 15 |
2 | First | Char | 15 |
为什么答案说是200?
我不明白。
求解



雷达卡




京公网安备 11010802022788号







