SAS_Institute
A00-201 · Question #68
The following SAS program is submitted: data test; set sasuser.employees; if 2 le years_service le 10 then amount = 1000; else if years_service gt 10 then amount = 2000; else amount = 0…
The correct answer is D. (missing numeric value). See the full explanation below for the reasoning.
Question
The following SAS program is submitted:
data test;
set sasuser.employees;
if 2 le years_service le 10 then
amount = 1000;
else if years_service gt 10 then
amount = 2000;
else
amount = 0;
amount_per_year = years_service / amount;
run;
Which one of the following values does the variable AMOUNT_PER_YEAR contain if an employee has been with the company for one year?
Options
- A0
- B1000
- C2000
- D(missing numeric value)
How the community answered
(44 responses)- A11% (5)
- B2% (1)
- C7% (3)
- D80% (35)
Community Discussion
No community discussion yet for this question.