Free A00-212 Exam Braindumps
SAS Advanced Programming Exam for SAS 9 Questions 71–75 (page: 16)

Updated On: 9-Feb-2026

Given the following SAS data sets ONE and TWO:

ONE TWO
YEAR QTR BUDGET YEAR QTR SALES
2001 3 500 2001 4 300
2001 4 400 2002 1 600
2002 1 700
The following SAS program is submitted:
proc sql;
select one.*, sales
from one, two;
quit;

Which one of the following reports is generated?

  1. YEAR QTR BUDGET SALES
    2001 4 400 300
    2002 1 700 600
  2. YEAR QTR BUDGET SALES
    2001 3 500
    2001 4 400 300
    2002 1 700 600
  3. YEAR QTR BUDGET SALES
    2001 3 500 300
    2001 4 400 300
    2002 1 700 600
  4. YEAR QTR BUDGET SALES
    2001 3 500 300
    2001 4 400 300
    2002 1 700 300
    2001 3 500 600
    2001 4 400 600
    2002 1 700 600

Answer(s): D



Given the following SAS data set ONE:
ONE
NUM VAR
1 A
2 B
3 C

Which one of the following SQL programs deletes the SAS data set ONE?

  1. proc sql;
    delete table one;
    quit;
  2. proc sql;
    alter table one
    drop num, var;
    quit;
  3. proc sql;
    drop table one;
    quit;
  4. proc sql;
    delete from one;
    quit;

Answer(s): C



The SAS data set TEMP has the following distribution of values for variable A:

A Frequency
1 500,000
2 500,000
6 7,000,000
8 3,000

Which one of the following SAS programs requires the least CPU time to be processed?

  1. data new;
    set temp;
    if a = 8 then
    b = 'Small ';
    else if a in(1, 2) then
    b = 'Medium';
    else if a = 6 then
    b = 'Large';
    run;
  2. data new;
    set temp;
    if a in (1, 2) then
    b = 'Medium';
    else if a = 8 then
    b = 'Small';
    else if a = 6 then
    b = 'Large';
    run;
  3. data new;
    set temp;
    if a = 6 then
    b = 'Large ';
    else if a in (1, 2) then
    b = 'Medium';
    else if a = 8 then
    b = 'Small';
  4. data new;
    set temp;
    if a = 6 then
    b = 'Large ';
    if a in (1, 2) then
    b = 'Small';
    run;

Answer(s): C



The following SAS program is submitted:

%let value = 9;
%let value2 = 5;
%let newval = %eval(&value / &value2);

Which one of the following is the resulting value of the macro variable NEWVAL?

  1. 1
  2. 2
  3. 1.8
  4. null

Answer(s): A



The following SAS program is submitted:

%let lib = %upcase(sasuser);
proc sql;
select nvar
from dictionary.tables
where libname = "&lib";
quit;

Given that several SAS data sets exist in the SASUSER library, which one of the following is generated as output?

  1. no result set
  2. a syntax error in the log
  3. a report showing the names of each table in SASUSER
  4. a report showing the number of columns in each table in SASUSER

Answer(s): D



Viewing page 16 of 38
Viewing questions 76 - 80 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!