Sie sind auf Seite 1von 18

EXAMINATION CONTENT

Required Exam
Candidates who earn this credential will have earned a passing score on the
SAS Base Programming for SAS 9 Exam. This exam is administered by SAS and
Prometric.
← 70 multiple-choice questions (must achieve score of 65% correct to pass)
← 2 hours to complete exam
← Use exam ID A00-211; required when registering with Prometric.

Exam topics include:


Accessing Data
← Use FORMATTED and LIST input to read raw data files.
← Use INFILE statement options to control processing when reading raw
data files.
← Use various components of an INPUT statement to process raw data files
including column and line pointer controls, and trailing @ controls.
← Combine SAS data sets.
← Access an Excel workbook.

Creating Data Structures


← Create temporary and permanent SAS data sets.
← Create and manipulate SAS date values.
← Export data to create standard and comma-delimited raw data files.

Managing Data
← Investigate SAS data libraries using base SAS utility procedures.
← Sort observations in a SAS data set.
← Use assignment statements in the DATA step.
← Modify variable attributes using options and statements in the DATA step.
← Accumulate sub-totals and totals using DATA step statements.
← Use SAS functions to manipulate character data, numeric data, and SAS
date values.
← Use SAS functions to convert character data to numeric and vice versa.
← Process data using DO LOOPS.
← Process data using SAS arrays.
← Validate and clean data.

Generating Reports
← Generate list reports using the PRINT procedure.
← Generate summary reports and frequency tables using base SAS
procedures.
← Enhance reports through the use of user-defined formats, titles, footnotes
and SAS System reporting.
← Generate HTML reports using ODS statements.

Handling Errors
← Identify and resolve programming logic errors.
← Recognize and correct syntax errors.
← Examine and resolve data errors.
Sample Questions
SAS Base Programming for SAS 9

Item 1
The following program is submitted.
data test;
input name $ age;
cards;
John +35
;
run;
Which values are stored in the output data set?
A. name age
B. ---------------------
C. John 35
D. name age
E. ---------------------
F. John (missing value)
G. name age
H. ---------------------
I. (missing value) (missing value)
J. The DATA step fails execution due to data errors.

correct_answer = "A"

Item 2
The following observation is stored in a SAS data set named EMPLOYEES:
LNAME FNAME JOBCODE
---------------------------------
Whitley Sam na1

If the DATA step below is executed, what will be the value of the variable
JOBDESC in the output SAS data set when this observation is processed:
data navigate;
set employees;
if jobcode = 'NA1' then jobdesc = 'Navigator';
run;
A. navigator
B. Navigator
C. NAVIGATOR
D. a missing value

correct_answer = "D"

Item 3
The following SAS program is submitted:

proc format;
value score 1 - 50 = 'Fail'
51 - 100 = 'Pass';
run;
Which one of the following PRINT procedure steps correctly applies the format?
A. proc print data = sasuser.class;
B. var test;
C. format test score;
D. run;
E. proc print data = sasuser.class;
F. var test;
G. format test score.;
H. run;
I. proc print data = sasuser.class format = score;
J. var test;
K. run;
L. proc print data = sasuser.class format = score.;
M. var test;
N. run;
correct_answer = "B"

Item 4
Given the following DATA step:
data loop;
x = 0;
do index = 1 to 5 by 2;
x = index ;
end;
run;

Upon completion of execution, what are the values of the variables X and INDEX
in the SAS data set named LOOP?

A. x = 3, index = 3
B. x = 3, index = 4
C. x = 5, index = 5
D. x = 5, index = 6
E. x = 5, index = 7

correct_answer = "E"

Item 5
Given that the data set named ONE contains 10 observations and the data set
named TWO contains 10 observations, how many observations will be contained
in the data set named COMBINE that is created in the following DATA step?

data combine;
set one two;
run;
A. 10
B. 20
C. 0, the DATA step will fail due to syntax errors
D. 10 to 20, depending on how many observations match

correct_answer = "B"

SAS Advanced Programming for SAS 9

Item 1
Given the following SAS data sets ONE and TWO:

The following SAS program is submitted:


proc sql;
select one.*, sales
from one right join two
on one.year = two.year;
quit;
Which one of the following reports is generated?

A.
B.

C.

D.

correct_answer = "D"

Item 2
Given the following SAS data sets ONE and TWO:

The following SAS program is submitted creating the output table THREE:
data three;
merge one (in = in1) two (in = in2);
by num;
run;

Which one of the following SQL programs creates an equivalent SAS data set
THREE?
A. proc sql;
B. create table three as
C. select *
D. from one full join two
E. where one.num = two.num;
F. quit;
G.
H. proc sql;
I. create table three as
J. select coalesce(one.num, two.num)
K. as NUM, char1, char2
L. from one full join two
M. where one.num = two.num;
N. quit;
O. proc sql;
P. create table three as
Q. select one.num, char1, char2
R. from one full join two
S. on one.num = two.num;
T. quit;
U. proc sql;
V. create table three as
W. select coalesce(one.num, two.num)
X. as NUM, char1, char2
Y. from one full join two
Z. on one.num = two.num;
AA. quit;
correct_answer = "D"

Item 3
The following SAS program is submitted:
%let type = RANCH;
proc sql;
create view houses as
select *
from sasuser.houses
where style = "&type";
quit;

%let type = CONDO;

proc print data = houses;


run;
The report that is produced displays observations whose value of STYLE are all
equal to RANCH.
Which one of the following functions on the WHERE clause resolves the current
value of the macro variable TYPE?
A. GET
B. SYMGET
C. %SYMGET
D. &RETRIEVE

correct_answer = "B"

Item 4
The SAS data set SASDATA.SALES has a simple index on the variable DATE
and a variable named REVENUE with no index.

In which one of the following SAS programs is the DATE index considered for
use?
A. proc print data = sasdata.sales;
B. by date;
C. run;
D. proc print data = sasdata.sales;
E. where month(date) = 3;
F. run;
G. data march;
H. set sasdata.sales;
I. if '01mar2002'd < date < '31mar2002'd;
J. run;
K. data march;
L. set sasdata.sales;
M. where date < '31mar2002'd or revenue > 50000;
N. run;
correct_answer = "A"

Predictive Modeling Using SAS Enterprise Miner 5 Exam

Item 1

Open the diagram labeled Practice A within the project labeled Practice A.
Perform the following in SAS Enterprise Miner 5.2:
1. Set the Clustering method to Average.
2. Run the Cluster node.

Use this project to answer the next two questions:

What is the Importance statistic for MTGBal (Mortgage Balance)?


A. 0.32959
B. 0.42541
C. 0.42667
D. 1.000000

correct_answer = "C" You must change the clustering method to average and
run the cluster node first. Select view results and look in the output window and
view the Variable Importance results.

What is the Cubic Clustering Criterion statistic for this clustering?


A. 5.00
B. 14.69
C. 5862.76
D. 67409.93

correct_answer = "B" Run the diagram flow and view the results. From the
results window, select View -> Summary Statistics -> CCC Plot and mouse over
where the data point and the line intersect. This will display the CCC statistic.

Item 2
1. Create a project named Insurance, with a diagram named Explore.
2. Create the data source, DEVELOP, in SAS Enterprise Miner 5.2.
DEVELOP is in the directory c:\workshop\Practice.
3. Set the role of all variables to Input, with the exception of the Target
variable, Ins (1= has insurance, 0= does not have insurance).
4. Set the measurement level for the Target variable, Ins, to Binary.
5. Ensure that Branch and Res are the only variables with the measurement
level of Nominal.
6. All other variables should be set to Interval or Binary.
7. Make sure that the default sampling method is random and that the seed
is 12345.

Use this project to answer the next <B.SEVEN< b>questions. (Note: only 2 of 7
questions are displayed for this example)
The variable Branch has how many levels?
A. 8
B. 12
C. 19
D. 47

correct_answer = "C" This information can be obtained by viewing the PROC


FREQ output.

What is the mean credit card balance (CCBal) of the customers with a variable
annuity?
A. $0.00
B. $8,711.65
C. $9,586.55
D. $11,142.45

correct_answer = "D" You can use a Stat Explore Node and view the output for
the Descriptive Statistics for CCBal by level of the target variable.

SAS Platform Administration for SAS 9

Item 1
The location of the repository manager physical files can be found in:
A. SAS Management Console.
B. the metadata server's omaconfig.xml file.
C. the foundation repository.
D. the metadata server's sasv9.cfg file.

correct_answer = "B"

Item 2
Every SAS platform implementation includes:
A. a foundation repository and a repository manager.
B. a foundation repository and a custom repository.
C. a custom repository and a repository manager.
D. multiple project repositories.

correct_answer = "A"

Item 3
Which procedure allows a platform administrator to update table metadata?
A. METAUPDATE_RULE
B. METASELECT
C. METATABLE
D. METALIB

correct_answer = "D"

Item 4
Which statement regarding pre-assigned libraries is true?
A. Pre-assigned libraries reduce the initialization time for a workspace server.
B. Pre-assigned libraries always connect to an RDBMS at server
initialization.
C. Pre-assigned libraries always connect to a base SAS library at server
initialization.
D. Pre-assigned libraries do not have to be identical across all SAS client
applications.

correct_answer = "C"

Item 5
A platform administrator needs to retrieve from the metadata a complete
LIBNAME statement including the user ID and password.

To complete this task, the platform administrator must be connected to SAS


Management Console with what type of user access in the metadata?
A. Access to the credentials associated with libraries created with the
METALIB procedure.
B. Access to credentials established by the LIBNAME engine.
C. Access to credentials associated with users in the outbound login.
D. Access to credentials for the authentication domain associated with the
database server.

correct_answer = "D"

Item 6
By default, which groups have WriteMetadata on the Foundation repository?
A. PUBLIC
B. SASUSERS
C. ADMINISTRATORS ONLY
D. SAS SYSTEM SERVICES ONLY
correct_answer = "B"

Item 7
Given the following authorization settings for Library Sales2:
← Library Sales2's parent folder has an explicit grant of RM for Mary.
← Library Sales2 has an explicit denial of RM for PUBLIC.

Which statement is true?


A. Mary can see Library Sales2.
B. Mary can see data flagged as PUBLIC in Library Sales2.
C. Mary cannot see Library Sales2.
D. Mary can see Library Sales2, but not any data flagged as PUBLIC.

correct_answer = "C"

Item 8
Which statement is FALSE regarding the WriteMemberMetadata (WMM)
permission?
A. By default, it mirrors the WriteMetadata permission.
B. It only applies to folders.
C. If WriteMetadata is granted, then you should not deny WMM.
D. WMM is inherited from one folder to another folder.

correct_answer = "D"

Item 9
Content has been exported from a SAS 9.1.3 environment into a SAS 9.2
development environment. After the export, the platform administrator attempts
to promote an object from the SAS 9.2 development environment into a
production environment.

What will be the result of this promotion attempt?


A. The promotion will not be allowed because objects from SAS 9.1.3 cannot
be promoted to SAS 9.2.
B. The promotion will not be allowed because objects in a development
environment cannot be promoted to a production environment.
C. The promotion will be allowed assuming the object type is allowed for
promotion.
D. The promotion will not be allowed because objects exported from a
previous environment cannot be promoted.
correct_answer = "C"

SAS Data Integration Developer for SAS 9

Item 1
Which of the following servers is NOT a part of the platform for SAS Business
Analytics server tier?
A. SAS Metadata Server
B. SAS Workspace Server
C. SAS/CONNECT Server
D. SAS Content Server

correct_answer = "D"

Item 2
Which products are needed on the local host in order to access data from an MS
Access Database using an ODBC Data Source name?
A. SAS/ACCESS interface to DSN
B. SAS/ACCESS interface to MDB
C. SAS/ACCESS interface to PC Files
D. SAS/ACCESS interface to ODBC

correct_answer = "D"

Item 3
Which statement is true regarding external files?
A. External file objects are accessed with SAS INFILE and FILE statements.
B. External files contain only one record per line.
C. External files can be used as input but not as outputs in SAS Data
Integration Studio jobs.
D. SAS can only work with Blank, Comma, Semicolon and Tab as delimiters
in external files.

correct_answer = "A"

Item 4
Within SAS Data Integration Studio's SQL Join transformation, the option to turn
on debug is located in which Properties pane?
A. Select Properties
B. Create Properties
C. SQL Join Properties
D. Job Properties

correct_answer = "C"

Item 5
Which SAS Data Integration Studio reports, generated as external files, can be
stored as document objects within metadata?
A. only job reports
B. only table reports
C. both job reports and table reports
D. No reports can be stored as document objects.

correct_answer = "C"

Item 6
You want to create a job to extract only the rows that contain information about
female employees from a table that contains information about both male and
female employees. The new table should have observations in ascending order
of age. Refer to the job flow diagram in the exhibit. Where would you set the
options to filter and sort the data?

A. Where tab and Group By tab


B. Where tab and Order By tab
C. Where tab and Parameters tab
D. Group By tab and Parameters tab

correct_answer = "B"

Item 7
Within SAS Data Integration Studio's Table Loader transformation, which load
style choice does NOT exist?
A. Delete where
B. Append to Existing
C. Replace
D. Update/Insert

correct_answer = "A"
Item 8
In SAS Data Integration Studio, a business key can be defined in the properties
of which transformation?
A. Data Validation
B. SQL Join
C. Lookup
D. SCD Type 2 Loader

correct_answer = "D"

SAS BI Content Developer for SAS 9

Item 1
When opening a registered SAS data file into a Microsoft Excel Worksheet, a
user has the option to sort the data.

Which application performs the sort and where does the sort occur?
A. SAS performs the sort on the server.
B. SAS performs the sort on the local machine.
C. Excel performs the sort on the server.
D. Excel performs the sort on the local machine.

correct_answer = "A"

Item 2
When can you add a stored process as a data source to an information map?
A. anytime
B. when at least one table is selected as a data source
C. when at least one OLAP cube is selected as a data source
D. once an application server has been selected

correct_answer = "B"

Item 3
Refer to the exhibit.

A SAS.IdentityGroups filter has been created in SAS Information Map Studio.


There is a data item called "Group" that contains different metadata groups.

If the "Group" filter is applied to the map, how will it affect the data?
A. All rows will be returned for any group that the user is a member of.
B. Only rows that belong to the first group are returned.
C. All rows will be returned for PUBLIC group only.
D. All rows matching the group identity login are returned.

correct_answer = "A"

Item 4
A SAS data set is used as a data source for a SAS BI Dashboard data model.

Which type of code do you write to query the data?


A. DATA Step
B. PROC SQL
C. a SQL/JDBC query
D. MDX

correct_answer = "C"

Item 5
Refer to the exhibit.

What causes this error message when executing a stored process?


A. Stored process code cannot be a .TXT file.
B. The stored process server is not running.
C. The file that contains the stored process code is not in the specified
location.
D. An administrator deleted the stored process from the metadata.

correct_answer = "C"
Item 6
In a stored process, when using a range prompt named DateRange, which
macro variables would you use in your SAS code?
A. DateRange_START and DateRange_FINISH
B. DateRange_BEGIN and DateRange_END
C. DateRange_MIN and DateRange_MAX
D. DateRange0 and DateRange1

correct_answer = "C"

Item 7
Upon initial install, all of the capabilities in the 'Web Report Studio: Report
Creation' role are also included in which role?
A. Web Report Studio: Report Viewing
B. Web Report Studio: Advanced
C. Web Report Studio: Content Management
D. Web Report Studio: Administration

correct_answer = "B"

Item 8
A content developer would like to create a group of cascading prompts to use in
multiple reports without recreating the prompts for each report.

What features of the prompt framework must the developer use?


A. Cannot create shared cascading prompts for use in multiple reports.
B. Dynamic Prompts and Shared Prompts
C. Cascading Prompts and Standard Groups
D. Cascading Prompts, Standard Groups, and Shared Prompts

correct_answer = "D"

Item 9
A SAS Information Map with a SAS OLAP Cube as a data source can be built
from which of the following?
A. multiple SAS OLAP Cubes
B. a SAS OLAP Cube and a stored process
C. one table joined with one SAS OLAP Cube
D. one SAS OLAP Cube only
correct_answer = "D"

Item 10
Which statement is true regarding connection profiles used with the SAS platform
applications?
A. Each SAS platform application must have its own connection profile.
B. Connection profiles are stored on the server machine.
C. Connection profiles are stored on the machine where the SAS application
is installed.
D. All SAS platform applications share one connection profile.

correct_answer = "C"

Das könnte Ihnen auch gefallen