Question 36:
The following SAS program is submitted:
data work.test;
First = 'Ipswich, England';
City = substr(First,1,7);
City_Country = City!!', '!!'England';
run;
Which one of the following is the value of the variable CITY_COUNTRY in the output data set?
- Ipswich!!
- 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 : Because is there is no trim, there is extra space for city. so answer is D. If you run in SAS, there is definitely an extra blank after Ipswich before the comma; by POE, it
would be D.
You can access to full explanation to question and answer from this page.