SAS_Institute
A00-201 · Question #102
A00-201 Question #102: Real Exam Question with Answer & Explanation
The correct answer is B. The program fails execution due to syntax errors.. See the full explanation below for the reasoning.
Question
The following SAS program is submitted:
data work.totalsales (keep = monthsales(12));
set work.monthlysales (keep = year product sales);
array monthsales(12);
do i=1 to 12;
monthsales(i) = sales;
end;
run;
The data set named WORK.MONTHLYSALES has one observation per month for each of five years for a total of 60 observations. Which one of the following is the result of the above program?
Options
- AThe program fails execution due to data errors.
- BThe program fails execution due to syntax errors.
- CThe program executes with warnings and creates the WORK.TOTALSALES data set.
- DThe program executes without errors or warnings and creates the WORK.TOTALSALES data set.
Community Discussion
No community discussion yet for this question.