Free A00-212 Exam Braindumps
SAS Advanced Programming Exam for SAS 9 Questions 66–70 (page: 15)

Updated On: 9-Feb-2026

The variable attributes of SAS data sets ONE and TWO are shown below:
ONE TWO
# Variable Type Len Pos # Variable Type Len Pos
2 sales Num 8 8 2 budget Num 8 8
1 year Num 8 0 3 sales Char 8 16
1 year Num 8 0

Data set ONE contains 100 observations. Data set TWO contains 50 observations. Both data sets are sorted by the variable YEAR.
The following SAS program is submitted:

data three;
merge one two;
by year;
run;

Which one of the following is the result of the program execution?

  1. No messages are written to the SAS log.
  2. ERROR and WARNING messages are written to the SAS log.
  3. Data set THREE is created with two variables and 50 observations.
  4. Data set THREE is created with three variables and 100 observations.

Answer(s): B



Given the following SAS statement:

%let idcode = Prod567;
Which one of the following statements stores the value 567 in the macro variable CODENUM?

  1. %let codenum = substr(&idcode,length(&idcode)-2);
  2. %let codenum = substr(&idcode,length(&idcode)-3);
  3. %let codenum = %substr(&idcode,%length(&idcode)-2);
  4. %let codenum = %substr(&idcode,%length(&idcode)-3);

Answer(s): C



The following SAS program is submitted:

data new (bufsize = 6144 bufno = 4);
set old;
run;

Which one of the following describes the difference between the usage of BUFSIZE= and BUFNO= options?

  1. BUFSIZE= specifies the size of the input buffer in bytes; BUFNO= specifies the number of input buffers.
  2. BUFSIZE= specifies the size of the output buffer in bytes; BUFNO= specifies the number of output buffers.
  3. BUFSIZE= specifies the size of the output buffer in kilobytes; BUFNO= specifies the number of input buffers.
  4. BUFSIZE= specifies the size of the output buffer in kilobytes; BUFNO= specifies the number of output buffers.

Answer(s): B



Consider the following SAS log:
229 data sasuser.ranch sasuser.condo / view = sasuser.ranch;
230 set sasuser.houses;
231 if style = 'RANCH' then output sasuser.ranch;
232 else if style = 'CONDO' then output sasuser.condo;
233 run;
NOTE: DATA STEP view saved on file SASUSER.RANCH.
NOTE: A stored DATA STEP view cannot run under a different operating system.
234
235 proc print data = sasuser.condo;
ERROR: File SASUSER.CONDO.DATA does not exist.
236 run;
NOTE: The SAS System stopped processing this step because of errors.

Which one of the following explains why the PRINT procedure fails?

  1. SASUSER.CONDO is a stored DATA step program.
  2. A SAS data file and SAS data view cannot be created in the same DATA step.
  3. A second VIEW=SASUSER.CONDO option was omitted on the DATA statement.
  4. The view SASUSER.RANCH must be processed before SASUSER.CONDO is created.

Answer(s): D



Which one of the following is an advantage of creating and using a SAS DATA step view?

  1. It can store an index.
  2. It always accesses the most current data.
  3. It works quickly through multiple passes of the data.
  4. It is useful when the underlying data file structure changes.

Answer(s): B



Viewing page 15 of 38
Viewing questions 71 - 75 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!