SAS_Institute
A00-280 · Question #52
A00-280 Question #52: Real Exam Question with Answer & Explanation
Sign in or unlock A00-280 to reveal the answer and full explanation for question #52. The question stem and answer options stay visible for context.
Question
The following SAS program is submitted, but fails due to syntax errors:
data WORK.TOTALEXPEND (keep=MonthExp(12));
set WORK.MONTHLYEXPEND (keep=Year Drug Disp);
array MonthExp(12);
do i=1 to 12;
MonthExp(i)=Disp;
end;
drop i;
run;
What is the cause of the syntax errors?
Options
- AThe keep= data set option should be (keep=MonthExp').
- BAn array can only be referenced in a KEEP statement and not within a keep= data set option.
- CAn array cannot be referenced in a keep= data set option.
- DThe keep= data set option should be (keep=MonthExp).
Unlock A00-280 to see the answer
You've previewed enough free A00-280 questions. Unlock A00-280 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.