SAS Institute A00-211 SAS Base Programming for SAS 9 Online Training
SAS Institute A00-211 Online Training
The questions for A00-211 were last updated at Jan 05,2025.
- Exam Code: A00-211
- Exam Name: SAS Base Programming for SAS 9
- Certification Provider: SAS Institute
- Latest update: Jan 05,2025
The following SAS program is submitted:
data work.total;
set work.salary(keep = department wagerate);
by department;
if first.department
then payroll = 0;
payroll + wagerate;
if last.department
run;
The SAS data set WORK.SALARY, currently ordered by DEPARTMENT, contains 100 observations for each of 5 departments.
What is the result?
- A . The WORK.TOTAL data set contains 5 observations.
- B . The WORKTDTAL data set contains 100 observations.
- C . The WORKTOTAL data set contains 500 observations.
- D . The program fails to execute due to errors.
The following SAS program is submitted:
<_insert_ods_code_>
proc means data=SASUSER.SHOES;
where Product in (‘Sandal’ , ‘Slipper’ , ‘Boot’);
run;
<_insert_ods_code_>
Which ODS statements inserted, respectively, in the two location above creates a report stored in an html file?
- A . ods html open=’sales.html’;ods html close;
- B . ods file=’sales.html’ / html;ods file close;
- C . ods html file=’sales.html’;ods html close;
- D . ods file html=’sales.html’;ods file close;
The following output is created by the FREQUENCY procedure:
Which TABLES statement was used to completed the following program that produced the output?
proc freq data=sales;
<_insert_code_>
run;
- A . tables region product;
- B . tables region,product
- C . tables region/product;
- D . tables region*product;
The following SAS program is submitted:
data work.test;
set work.staff (keep = jansales febsales marsales);
array diff_sales{3} difsales1 – difsales3;
array monthly{3} jansales febsales marsales;
run;
What new variables are created?
- A . JANSALES, FEBSALES and MARSALES
- B . MONTHLY1, MONTHLY2 and MONTHLY3
- C . DIFSALES1, DIFSALES2 and DIFSALES3
- D . DIFF_SALES1, DIFF_SALES2 and DIFF_SALES3
Given the raw data file AMOUNT:
—-I—- 10—I—-20—I—-30
$1,234
The following SAS program is submitted:
data test;
infile ‘amount’;
input@1 salary 6.;
if_error_then description = ‘Problems’;
else description = ‘No Problems’;
run;
What is the result?
- A . The value of the DESCRIPTION variable is No Probl.
- B . The value of the DESCRIPTION variable is Problems.
- C . The value of the DESCRIPTION variable is No Problems.
- D . The value of the DESCRIPTION variable can not be determined.
The following SAS program is submitted:
data WORK.DATE_INFO;
X="01Jan1960" D;
run;
What variable X contains what value?
- A . the numeric value 0
- B . the character value "01Jan1960"
- C . the date value 01011960
- D . the code contains a syntax error and does not execute.
Which statement is true concerning the SAS automatic variable _ERROR_?
- A . It cannot be used in an if/then condition.
- B . It cannot be used in an assignment statement.
- C . It can be put into a keep statement or keep= option.
- D . It is automatically dropped.