SAS_Institute
A00-211 · Question #145
A00-211 Question #145: Real Exam Question with Answer & Explanation
Sign in or unlock A00-211 to reveal the answer and full explanation for question #145. The question stem and answer options stay visible for context.
Question
The following SAS program is submitted: data work.total; set work.salary(keep = department wagerate); by department; if first.department then payroll = 0; payroll + wagerate; if last.department; run; The SAS data set named WORKSALARY contains 10 observations for each department, and is currently ordered by DEPARTMENT. Which statement is true?
Options
- AThe BY statement in the DATA step causes a syntax error.
- BThe statement payroll + wagerate; in the DATA step causes a syntax error.
- CThe values of the variable PAYROLL represent the total for each department in the WORK.SALARY
- DThe values of the variable PAYROLL represent a total for all values of WAGERATE in the WORKSALARY
Unlock A00-211 to see the answer
You've previewed enough free A00-211 questions. Unlock A00-211 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.