Question 34:
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 is the value of the variable WORD in the output data set?
- T
- 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 : 2
Exp : the placement of the quotations around the delimiter, the comma, is critical - if there were NO space (','), the value returned would be ' ' (missing character value).
You can access to full explanation to question and answer from this page.