y***6 发帖数: 46 | 1 data test;
Author='Agatha Christie';
First=substr(scan(author,1,','),1,1);
run;
what's the length of the variable First in the output data;
A.1
B.200
I will choose A, however, the correct answer is B. Why? Thank you! | s*******9 发帖数: 35 | 2 take a look at scan function.
it will generate a variable with length of 200 if there is no length function in
the previous statement. |
|