Given the following SAS data sets ONE and TWO:
ONE TWO
OBS COMMON X OBS COMMON Y
1 A 10 1 A 1
2 A 13 2 A 3 3 A 14 3 B 4
4 B 9 4 B 2
5 C 8 5 C 5
6 C 14
The following SAS DATA step is submitted:
data combine;
merge one two;
by common;
run;
Which one of the following represents the data values stored in data set COMBINE?
A. OBS COMMON X Y 1 A 10 1 2 A 13 3 3 A 14 3 4 B 9 4 5 B 9 2 6 C 8 5 7 C 14 5At the start of a new SAS session; the following program is submitted:
%macro one;
data _null_;
call symput('proc','measn);
run;
proc andproc data=sashelp.class;
run;
%mend;
%one()
What is the result?
A. The marco variable PRCO is stored in the SAS catalog WORK.SASMACRA data set stored on a network drive has the following characteristics:
14 Million observations 400 numeric variables 0 character variables of length 20 Binary compression
A DATA Step query requires only 3 character and 15 numeric variables from this data set. What is the best way to reduce computer resource utilization in this DATA Step?
A. A KEEP= data set option used on the SET StatementThe following SAS program is submitted:
%let a=cat;
%macro animal(a=frog);
%let a=bird;
%mend;
%animal(a=pig)
%put a is anda;
What is written to the SAS log?
A. a is pigThe following SAS program is submitted:
data temp;
set sasuser.history(kep=date);
format date qtr
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?
A. by groupformat date;Given the following SAS data set ONE:
ONE
CATEGORY AGE SALARY BONUS
M 28 200 20
M 25 100 10
M 28 300 10
M 33 300 30
F 18 100 50
F 25 200 10
F 35 400 50
The following SQL program is submitted:
proc sql;
create table two as
select distinct age
from one
where age < 33;
quit;
How many rows are written to the SAS data set TWO?
A. 3In the data step merge, the BY variables in all data sets must have the same:
A. Name and lengthThe following SAS program is submitted:
% let product = merchandise;
And the following message is written to the SAS log:
The value is "merchandise"
Which macro statement wrote this message?
A. % put the value is "andproduct.";Which one of the following statements is true regarding a SAS DATA step view?
A. It allows write capabilities.Given the following SAS data set SASUSER.HIGHWAY:
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;
select count(distinct status)
into :numgrp
from sasuser.highway;
%let numgrp = andnumgrp;
select distinct status
into :group1-:groupandnumgrp
from sasuser.highway;
quit;
%do i = 1 %to andnumgrp;
proc print data = sasuser.highway;
where status = "andandgroupandi" ;
run;
%end;
%mend;
%highway
How many reports are produced by the above program?
B. 1Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only SAS Institute exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your A00-212 exam preparations and SAS Institute certification application, do not hesitate to visit our Vcedump.com to find your solutions here.