SAS_Institute
A00-211 · Question #152
The following SAS program is submitted: data combine; prefix='505'; middle='6465 `; end='09090'; <insert statement here>; run; Which statement successfully completes the program so that TOTAL has a…
The correct answer is B. total = catx('-', prefix, middle, end). See the full explanation below for the reasoning.
Question
The following SAS program is submitted:
data combine; prefix='505'; middle='6465 `; end='09090'; <insert statement here>; run; Which statement successfully completes the program so that TOTAL has a value of 505-6465- 09090?
Options
- Atotal = cat('-', prefix, middle, end);
- Btotal = catx('-', prefix, middle, end);
- Ctotal = prefix !!'-'!! middle ``!!'-'!! end;
- Dtotal = prefix!!'-'!! left(middle)!!'-'!! end;
How the community answered
(38 responses)- A3% (1)
- B76% (29)
- C13% (5)
- D8% (3)
Community Discussion
No community discussion yet for this question.