Free A00-231 Exam Braindumps
SAS 9.4 Base Programming - Performance-Based Questions 6–10 (page: 3)

Updated On: 10-Feb-2026

SIMULATION

Scenario:
This project will use data set cert.input08a and cert.input08b. At any time, you may save your program as program08 in cert\programs.
Both data sets contain a common numeric variable named ID.

Write a program that will use a SAS DATA Step to:

o Combine data sets cert.input08a and cert.input08b by matching values of the ID variable.
o Write only observations that are in both data sets to a new data set named results.match08.
o Write all other non-matching observations from either data set to a new data set named results.nomatch08.
o Exclude all variables that begin with
"ex" from results.nomatch08.

How many variables (columns) are in _______________ results.nomatch08

Enter your numeric answer in the space below:

Save your program as ______________ program08.sas in folder cert programs before continuing with the next project.

  1. 5

Answer(s): A

Explanation:

SAS code that could be used to solve this project:

Proc sort data=cert.input08a out=work.input08a;
by ID;

run;

proc sort data=cert.input08b out=work.input08b;
by ID;
run;

data results.match08 results.nomatch08 (drop=ex: );
merge work.input08a (in=a) work.input08b (in=b);
by ID;
if a and b then output results.match08;
else output results.nomatch08;
run;

proc contents data=results.match08;
run;

proc contents data=results.nomatch08;
run;
The correct answer is: 5



SIMULATION

Scenario:

This project will use data set cert.input12. At any time, you may save your program as program12 in cert\programs.

cert.input12 contains a single observation with two variables:

o salary o year

Write a SAS program that will:

o Create an output data set results.output12.
o Read cert.input12 as input.
o Increase the salary variable by 5.65% annually until it is greater than $500,000.
o Increment the year variable by 1 with each annual increase.
o Create an output data set results.output12 that has one observation for each value of year. Each observation should have a year and salary variable.

What is the maximum salary hat is less than $500,000? Enter your numeric answer in the space below (Round your answer to the nearest integer)

  1. 498737

Answer(s): A

Explanation:

data results.output12;
set cert.input12;
do until (salary gt 500000);
salary=salary*1.0565;
year+1;
output;
end;
run;

proc print data=results.output 12;
run;



SIMULATION

Scenario:

This project will use data set cert.input12. At any time, you may save your program as program12 in cert\programs.

cert.input12 contains a single observation with two variables:

o salary o year

Write a SAS program that will:

o Create an output data set results.output12.
o Read cert.input12 as input.
o Increase the salary variable by 5.65% annually until it is greater than $500,000.
o Increment the year variable by 1 with each annual increase.
o Create an output data set results.output12 that has one observation for each value of year. Each observation should have a year and salary variable.

What is the value of year when the above salary occurs? Enter your numeric answer in the space below.

  1. 2027

Answer(s): A

Explanation:

data results.output12;
set cert.input12;

do until (salary gt 500000);
salary=salary*1.0565;
year+1;
output;
end;
run;

proc print data=results.output 12;
run;



SIMULATION

Scenario:

This project will use data set cert.input13. At any time, you may save your program as program13 in cert\programs.
This data set contains 1001 observations and 2 variables:

o Date1, a numeric variable representing an unformatted SAS date value. Example: 12001.
o Charnum, a character variable representing a monetary amount. Example: $50,000.

Write a SAS program that will:

o Save the new data set as results.output13.
o Create a new variable Chdate that converts the datel variable to a character variable that is in the format ddmonyyyy, such as 11NOV1992.
o Create a new variable num1 that converts the Charnum variable to a numeric variable.

What is the value ofChdatefor observation 52?

  1. 30DEC1992

Answer(s): A

Explanation:

data results.output13;
set cert.input13;
Chdate=put(date 1,date9.);
num 1=input(Charnum,dollar7.);
run;

proc print data=results.output13 (firstobs=52 obs=52); run;



SIMULATION

Scenario:

This project will use data set cert.input13. At any time, you may save your program as program13 in cert\programs.
This data set contains 1001 observations and 2 variables:

o Date1, a numeric variable representing an unformatted SAS date value. Example: 12001.
o Charnum, a character variable representing a monetary amount. Example: $50,000.

Write a SAS program that will:

o Save the new data set as results.output13.
o Create a new variable Chdate that converts the datel variable to a character variable that is in the format ddmonyyyy, such as 11NOV1992.
o Create a new variable num1 that converts the Charnum variable to a numeric variable.

What is the average (mean) of the num1 variable for the entire data set?

Enter your numeric answer in the space below (Round your answer to the nearest integer).

  1. 51763

Answer(s): A

Explanation:

data results.output13;
set cert.input13;
Chdate=put(date 1,date9.);
num 1=input(Charnum,dollar7.);

run;

proc means data=results.output13;
var num 1;
run;



Viewing page 3 of 9
Viewing questions 11 - 15 out of 36 questions


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

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