Question 32:
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?
- 1
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering SAS Certification Material
Correct Answer : 4
Exp : Yes the default length for the variable on r.h.s of scan function is 200
Submit the following code and check the length of FIRST in the SAS output.
You can access to full explanation to question and answer from this page.