SAS_Institute
A00-211 · Question #206
The SAS data set PETS is sorted by the variables TYPE and BREED. The following SAS program is submitted: proc print data = pets; var type breed; sum number; run; What is the result?
The correct answer is A. The SUM statement produces only a grand total of NUMBER. See the full explanation below for the reasoning.
Question
The SAS data set PETS is sorted by the variables TYPE and BREED. The following SAS program is submitted:
proc print data = pets; var type breed; sum number; run; What is the result?
Options
- AThe SUM statement produces only a grand total of NUMBER.
- BThe SUM statement produces only subtotals of NUMBER for each value of TYPE.
- CThe SUM statement produces both a grand total of NUMBER and subtotals of NUMBER for each
- DNothing is produced by the SUM statement; the program fails to execute.
How the community answered
(50 responses)- A74% (37)
- B4% (2)
- C16% (8)
- D6% (3)
Community Discussion
No community discussion yet for this question.