nerdexam
SAS_Institute

A00-201 · Question #102

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

(19 responses)
  • A
    11% (2)
  • B
    84% (16)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full A00-201 Practice