By admin | November 18, 2009

SAS Certified Adv Programmer 130 Questions (18)

Given the following SAS data sets ONE and TWO:

ONE
YEAR QTR BUDGET 
2001 3   500
2001 4   400
2002 1   700

TWO 
YEAR QTR SALES
2001 4   300
2002 1   600

The following SAS program is submitted:

proc sql;
    select one.*, sales from one, two where one.year = two.year;
quit;

Which one of the following reports is generated?

A.
YEAR QTR BUDGET SALES
2001 4 400 300
2002 1 700 600

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

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

D.
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

By admin | November 11, 2009

SAS Certified Adv Programmer 130 Questions (17)

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?

A.
proc sql;
delete table one;
quit;

B.
proc sql;
alter table one
drop num, var;
quit;

C.
proc sql;
drop table one;
quit;

D.
proc sql;
delete from one;
quit;

By admin | November 11, 2009

SAS Certified Adv Programmer 130 Questions (16)

Given the following SAS data sets ONE and TWO:

ONE 
YEAR QTR BUDGET 
2001 3   500 
2001 4   400
2002 1   700

TWO
YEAR QTR SALES
2001 4   300
2002 1   600

The following SAS program is submitted:

proc sql;
    select one.*, sales from one, two;
quit;

Which one of the following reports is generated?

A.

YEAR QTR BUDGET SALES
2001 4   400    300 
2002 1   700    600

B.

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

C.

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

D.

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 
By admin | November 11, 2009

SAS Certified Adv Programmer 130 Questions (15)

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

A. It can store an index.
B. It always accesses the most current data.
C. It works quickly through multiple passes of the data.
D. It is useful when the underlying data file structure changes.

By admin | November 11, 2009

SAS Certified Adv Programmer 130 Questions (14)

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?

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

Pages: Prev 1 2 ... 6 7 8 9 10 ... 55 56 Next