SAS_Institute
A00-211 · Question #51
Consider the following data step: The computed variables City and State have their values assigned using two different methods, a RETAIN statement and an Assignment statement. Which statement…
The correct answer is D. City's value will be assigned one time, State's value 5 times. See the full explanation below for the reasoning.
Question
Consider the following data step:
The computed variables City and State have their values assigned using two different methods, a RETAIN statement and an Assignment statement. Which statement regarding this program is true?
Options
- AThe RETAIN statement is fine, but the value of City will be truncated to 8 bytes as the LENGTH
- BBoth the RETAIN and assignment statement are being used to initialize new variables and are equally
- CThe assignment statement is fine, but the value of City will be truncated to 8 bytes as the LENGTH
- DCity's value will be assigned one time, State's value 5 times.
How the community answered
(47 responses)- A4% (2)
- B11% (5)
- C6% (3)
- D79% (37)
Community Discussion
No community discussion yet for this question.