Question 33:
The following SAS program is submitted:
data work.test;
Author = 'Christie, Agatha';
First = substr(scan(author,2,' ,'),1,1);
run;
Which one of the following is the value of the variable FIRST in the output data set?
- A
- 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 : 1
Exp : Even if there is a space between the comma and the Agatha, it does not matter because 'blank' or ;space' is also one of the several(blank . ( + | & ! $ * ) ; ^ - / , %
default delimiters.
You can access to full explanation to question and answer from this page.