Free A00-212 Exam Braindumps
SAS Advanced Programming Exam for SAS 9 Questions 31–35 (page: 8)

Updated On: 9-Feb-2026

The following SAS program is submitted:

data temp;
set sasuser.history(kep=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
3 15
4 25

Which By statement completes the data step and successfully generates the required output?

  1. by groupformat date;
  2. by formateed date;
  3. by notsorted date;
  4. by date qtr

Answer(s): A



Which statement(s) in the DATASETS procedure alter(s) the name of a SAS data set stored in a SAS data library?

  1. MODIFY and CHANGE statements
  2. RENAME statement only
  3. CHANGE statement only
  4. MODIFY and RENAME statements

Answer(s): C



Given has SAS dataset ONE:


The following SAS program is submitted:


The following output is desired:
Proc sql;
<insert SQL clause here>
from one;
quit;

Which SQL procedure clause completes the program and generates the desired output?

  1. Select salary, salary*.10 var=BONUS
  2. Select salary, salary*.10 label='BONUS'
  3. Select salary, salary *.10 column='BONUS'
  4. Select salary, salary*.10 name='BONUS'

Answer(s): B



Given the non-indexed SAS data set TEMP:

TEMP
X Y
- -
P 52
P 45
A 13
A 56
R 34
R 12
R 78
The following SAS program is submitted:
Proc print data=temp;
<insert BY statement here>
run;

Which BY statement completes the program, creates a listing report that is grouped by X and completes without errors?

  1. By X notsorted;
  2. By X grouped;
  3. By Descending X;
  4. By X;

Answer(s): A



Given the data set SASHELP.CLASS

SASHELP.CLASS
NAME AGE
Mary 15
Philip 16
Robert 12
Ronald 15
The following SAS program is submitted
%let value = Philip;
proc print data =sashelp.class;
<insert Where statement here>
run;

Which WHERE statement successfully completes the program and produces a report?

  1. Where upcase(name)="upcase(&value)";
  2. Where upcase(name)="%upcase(&value)";
  3. Where upcase(name)=upcase(&value);
  4. Where upcase(name)=%upcase(&value);

Answer(s): B



Viewing page 8 of 38
Viewing questions 36 - 40 out of 184 questions


Post your Comments and Discuss SAS Institute A00-212 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!