Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Download Full Version A00-211 SAS Institute Exam

Page: 4 / 10
Total 270 questions

SAS Base Programming for SAS (r) 9 Questions and Answers

Question 13

After a SAS program is submitted, the following is written to the SAS log:

105 data january;

106 set allmonths(keep = product month num_sold cost);

107 if month = ‘Jan’ then output january;

108 sales = cost * num_sold;

109 keep = product sales;

------

22

ERROR 22-322: Syntax error, expecting one of the following:!,

!!, &, *,**, +, -,/, <,< =, <>, =, >, ><, >=,

AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL,

NOTIN, OR,^=,|,II,

110 run;

What changes should be made to the KEEP statement to correct the errors in the LOG?

Options:

A.

keep product sales;

B.

keep product, sales;

C.

keep = product, sales;

D.

keep = (product sales);

Question 14

Given the SAS data set WORK.EMP_NAME:

Given the SAS data set WORK.EMP_DEPT:

The following program is submitted:

How many observations are in data set WORK.ALL after submitting the program?

Options:

A.

1

B.

2

C.

3

D.

5

Question 15

The following SAS program is submitted, creating the SAS data set ONE:

data one;

infile ‘file specification’;

input num chars$;

run;

ONE

NUMCHAR

----------------

123

323

177

The following SAS program is submitted:

proc print data = one;

where char = 23;

run;

What is output?

Options:

A.

NUM CHAR1 772

B.

NUM CHAR1 233 23

C.

NUM CHAR1 233 231 77

D.

No output is generated.

Question 16

The following SAS program is submitted:

proc sort data = work.employee;

by descending fname;

proc sort data = work.salary;

by descending fname;

data work.empdata;

merge work.employee

work.salary;

by fname;

run;

Why does the program rail to execute?

Options:

A.

The SORT procedures contain invalid syntax.

B.

The merged data sets are not permanent SAS data sets.

C.

The RUN statement was omitted alter each or the SORT procedures.

D.

The data sets were not merged in the order by which they were sorted.

Page: 4 / 10
Total 270 questions