By admin | August 25, 2009

SAS Certified Base Programmer 123 Questions (3)

The following SAS program is submitted: data work.new; length word $7; amount = 7; if amount = 5 then word = ‘CAT’; else if amount = 7 then word = ‘DOG’; else work = ‘NONE!!!’; amount = 5; run; Which one of the following represents the values of the AMOUNT and WORD variables? A. amount […]

By admin | August 25, 2009

SAS Certified Base Programmer 123 Questions (2)

When the following SAS program is submitted, the data set SASDATA.PRDSALES contains 5000 observations: libnamesastemp ‘SAS-data-library’; options obs = 500; proc print data = sasdata.prdsales (firstobs = 100); run; options obs = max; proc means data = sasdata.prdsales (firstobs = 500); run; How many observations are processed by each procedure? A. 400 for PROC PRINT […]

By admin | August 25, 2009

SAS Certified Base Programmer 123 Questions (1)

In the following SAS program, the input data files are sorted by the NAMES variable: libnametemp ‘SAS-data-library’; data temp.sales; merge temp.sales work.receipt; by names; run; Which one of the following results occurs when this program is submitted? A. The program executes successfully and a temporary SAS data set is created. B. The program executes successfully […]