SAS_Institute
A00-212 · Question #37
A00-212 Question #37: Real Exam Question with Answer & Explanation
Sign in or unlock A00-212 to reveal the answer and full explanation for question #37. The question stem and answer options stay visible for context.
Question
The following SAS program is submitted: data temp; set sasuser.history(keep = date); format date qtr.; <insert BY statement here> if first.date then total = 0; total + 1; if last.date; run; proc print data = temp; run; SASUSER.HISTORY is sorted by the SAS date variable DATE. The following output is required: date total ---- ---- 1 13 2 12 3 15 4 25 Which By statement completes the data step and successfully generates the required output?
Options
- Aby date qtr.;
- Bby notsorted date;
- Cby formatted date;
- Dby groupformat date;
Unlock A00-212 to see the answer
You've previewed enough free A00-212 questions. Unlock A00-212 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.