SAS_Institute
A00-211 · Question #110
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…
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
How the community answered
(50 responses)- A2% (1)
- B82% (41)
- C10% (5)
- D6% (3)
Community Discussion
No community discussion yet for this question.