Exam A00-211 All QuestionsBrowse all questions from this exam
Question 6

The following SAS program is submitted:

data one;

addressl = 214 London Way;

run;

data one;

set one;

address = tranwrd(address1, Way, Drive); run;

What are the length and value of the variable ADDRESS?

    Correct Answer: D

    The length of the new variable created by the tranwrd function is automatically set to 200 bytes if the length is not previously defined. Therefore, the length is 200. Additionally, the value of the variable 'address' after the substitution in the tranwrd function will be '214 London Drive'.

Discussion
MTKV18Option: D

If tranwrd function returns a value to a variable that has not previously assigned length then that variable is given a length of 200 bytes, so Answer is D