Question 19 :
The following SAS program is submitted:
data work.test;
length city $20;
city='Paris';
city2=trim(city);
run;
Which one of the following is the length of the city2 variable?
- 5
- 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 : The LENGTH statement specifies that the variable city has a length of 20 characters. The TRIM function in the assignment statement for city2 removes trailing blanks from the
value.
You can access to full explanation to question and answer from this page.