By admin | October 9, 2009

SAS Certified Base Programmer 123 Questions (118)

Which one of the following is true when SAS encounters a data error in a DATA step? A. The DATA step stops executing at the point of the error, and no SAS data set is created. B. A note is written to the SAS log explaining the error, and the DATA step continues to execute. […]

By admin | October 9, 2009

SAS Certified Base Programmer 123 Questions (117)

The following SAS program is submitted: data work.totalsales (keep=monthsales{12}); set work.monthlysales (keep=year product sales); array monthsales {12}; do i=1 to 12; monthsales{i}=sales; end; run; The data set named WORK.MONTHLYSALES has one observation per month for each of five years for a total of 60 observations. Which one of the following is the result of the […]

By admin | October 9, 2009

SAS Certified Base Programmer 123 Questions (116)

The following SAS program is submitted: data work.totalsales; set work.monthlysales(keep=year product sales); retrain montnsales {12}; array montnsales {12}; doi=1 to 12; monthsales{i}=sales; end; ent+1; monthsales{ent}=sales; run; The data set named WORK.MONTHLYSALES has one observation per month for each of five years for a total of 60 observations. Which one of the following is the result […]

By admin | October 9, 2009

SAS Certified Base Programmer 123 Questions (115)

The following SAS program is submitted: data work.january; set work.allmonths (keep=product month num_sold cost); if month=’jan’then output work.january; sales=cost*num_sold; keep=product sales; run; Which variables does the WORK.JANUARY data set contain? A. PRODUCT and SALES only B. PRODUCT, MONTH, NUM_SOLD and COST only C. PRODUCT, SALES, MONTH, NUM_SOLD and COST only D. An incomplete output data […]

By admin | October 9, 2009

SAS Certified Base Programmer 123 Questions (114)

The contents of the raw data file CALENDAR are listed below: —-|—-10—|—-20—|—-30 01012000 The following SAS program is submitted: data test; infile,calendar’; input@1 data mmddyy10.; if date=’01012000’d then event=’january 1st’; run; Which one of the following is the value of the EVENT variable? A. 01012000 B. January 1st C. . (missing numeric value) D. The […]