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 […]

By admin | August 10, 2009

SAS Certified Base Programmer 50 Questions (50)

The following SAS program is submitted: data test; input country $8. date mmddyy10.; cards; Germany 12/31/2000 France 01/32/2001 ; run; Which one of the following is the value of the variable _ERROR_ when the variable _N_ has a value of 2? a. 0 b. 1 c. true d. false

By admin | August 10, 2009

SAS Certified Base Programmer 50 Questions (49)

Which one of the following statements is true when SAS encounters a data error? a. The execution phase is stopped, and a system abend occurs. b. A missing value is assigned to the appropriate variable, and execution continues. c. The execution phase is stopped, and a SAS data set is created with zero observations. d. […]