A00-212 · Question #10
Given the SAS data set SAUSER.HIGWAY: SASUSER.HIGHWAY STEERING SEATBELT SPEED STATUS COUNT ------- ----------- -------- ----------- ------- absent No 0-29 serious 31 absent No 0-29 not 1419 absent…
The correct answer is B. 2. See the full explanation below for the reasoning.
Question
Given the SAS data set SAUSER.HIGWAY:
SASUSER.HIGHWAY STEERING SEATBELT SPEED STATUS COUNT ------- ----------- -------- ----------- ------- absent No 0-29 serious 31 absent No 0-29 not 1419 absent No 30-49 serious 191 absent no 30-49 not 2004 absent no 50+ serious 216 The following SAS program is submitted:
%macro highway; proc sql noprint; %let numgrp = 6; select distinct status into :group1 - :group&numgrp from sasuser.highway; quit; %do i = 1 %to &numgrp; proc print data = sasuser.highway; where status = "&&group&i" ; run; %end; %mend; %highway How many reports are produced?
Options
- A0
- B2
- C5
- D6
How the community answered
(50 responses)- A6% (3)
- B82% (41)
- C4% (2)
- D8% (4)
Community Discussion
No community discussion yet for this question.