SAS_Institute
A00-201 · Question #8
8: The following SAS program is submitted: data work.flights; destination = 'CPH'; select(LHR); when('LHR') city = 'London'; when('CPH') city = 'Copenhagen'; otherwise; end; run; Which one of the…
The correct answer is B. Copenhagen. See the full explanation below for the reasoning.
Question
8: The following SAS program is submitted:
data work.flights;
destination = 'CPH';
select(LHR);
when('LHR') city = 'London';
when('CPH') city = 'Copenhagen';
otherwise;
end;
run;
Which one of the following is the value of the CITY variable?
Options
- ALondon
- BCopenhagen
- Ccharacter, 8 bytes
- D' ' (missing character value)
How the community answered
(32 responses)- A3% (1)
- B81% (26)
- C6% (2)
- D9% (3)
Community Discussion
No community discussion yet for this question.