| Exam Code/Number: | A00-212Join the discussion |
| Exam Name: | SAS Advanced Programming Exam for SAS 9 |
| Certification: | SASInstitute |
| Question Number: | 185 |
| Publish Date: | Nov 30, 2026 |
|
Rating
100%
|
|
This question will ask you to provide a segment of missing code.
Given the SAS data set WORK EXAM:
TotalScore
----------------
512
657
*
782
The following SAS program is submitted:
The following output is desired:
TotalScore
--------------
512
657
782
Which WHERE expression completes the program and generates the desired output?
The following SAS program is submitted:
% let test=one;
% let one=two;
% let two=three;
% let three=last;
% put what displays is &&&&&test;
What is the written to the SAS log?
Given the SAS data set SAUSER.HIGWAY:
SASUSER.HIGHWAY
The following SAS program is submitted:
% macro highway;
proc sql nonprint;
% 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?
Given the following SAS data set ONE:
ONE
CATEGORY AGE SALARY BONUS
----
M 28 200 .
M 25 100 10
F 18 100 50
F 25 200 10
The following SAS program is submitted:
proc sql;
create table two as
select category, salary + bonus as EARNINGS
from one; quit;
Which one of the following represents the data values stored in the data set TWO?
Given the following SAS data set ONE:
ONE
REP COST
SMITH 200
SMITH 400
JONES 100
SMITH 600
JONES 100
JONES 200
JONES 400
SMITH 800
JONES 100
JONES 300
The following SAS program is submitted:
proc sql;
select rep, avg(cost) as AVERAGE
from one
group by rep
having avg(cost) > (select avg(cost) from one);
quit;
Which one of the following reports is generated?