Free A00-212 Exam Braindumps (page: 17)

Page 16 of 47

The following SAS program is submitted:

data one;
do i = 1 to 10;
ptobs = ceil(ranuni(0) * totobs);
set temp point = ptobs
nobs = totobs;
output;
end;
stop;
run;

The SAS data set TEMP contains 2,500,000 observations. Which one of the following represents the possible values for PTOBS?

  1. any integer between 1 and 10
  2. any real number between 0 and 1
  3. any integer between 1 and 2,500,000
  4. any real number between 1 and 2,500,000

Answer(s): C



Which one of the following programs contains a syntax error?

  1. proc sql;
    select product.*, cost.unitcost, sales.quantity
    from product p, cost c, sales s
    where p.item = c.item and p.item = s.item;
    quit;
  2. proc sql;
    select product.*, cost.unitcost, sales.quantity
    from product, cost, sales
    where product.item = cost.item and
    product.item = sales.item;
    quit;
  3. proc sql;
    select p.*, c.unitcost, s.quantity
    from product as p, cost as c, sales as s
    where p.item = c.item and p.item = s.item;
    quit;
  4. proc sql;
    select p.*, c.unitcost, s.quantity
    from product, cost, sales
    where product.item = cost.item and
    product.item = sales.item;
    quit;

Answer(s): D



The following SAS code is submitted:

%macro houses(dsn = houses,sub = RANCH);
data &dsn;
set sasuser.houses;
if style = "¬";
run;
%mend;
%houses(sub = SPLIT)
%houses(dsn = ranch)
%houses(sub = TWOSTORY)

Which one of the following is the value of the automatic macro variable SYSLAST?

  1. work.ranch
  2. work.houses
  3. WORK.RANCH
  4. WORK.HOUSES

Answer(s): D



Given the following SAS data sets ONE and TWO:

ONE TWO
NUM COUNTRY NUM CITY
1 CANADA 3 BERLIN
2 FRANCE 5 TOKYO
3 GERMANY 4 BELGIUM
5 JAPAN

The following SAS program is submitted:
proc sql;
select country
from one
where not exists
(select *
from two
where one.num = two.num);
quit;

Which one of the following reports is generated?

  1. COUNTRY GERMANY JAPAN
  2. COUNTRY FRANCE BELGIUM
  3. COUNTRY CANADA FRANCE BELGIUM
  4. COUNTRY CANADA FRANCE GERMANY

Answer(s): C






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

A00-212 Discussions & Posts