Free A00-212 Exam Braindumps
SAS Advanced Programming Exam for SAS 9 Questions 61–65 (page: 14)

Updated On: 9-Feb-2026

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



Which one of the following statements is true?

  1. The WHERE statement can be executed conditionally as part of an IF statement.
  2. The WHERE statement selects observations before they are brought into the PDV.
  3. The subsetting IF statement works on observations before they are read into the PDV.
  4. The WHERE and subsetting IF statements can be used interchangeably in all SAS programs.

Answer(s): B



Viewing page 14 of 38
Viewing questions 66 - 70 out of 184 questions


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

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