By admin | September 8, 2009

SAS Certified Base Programmer 123 Questions (28)

The following SAS program is submitted: data work.report; set work.sales_info; if qtr(sales_date) ge 3; run; The SAS data set WORK.SALES_INFO has one observation for each month in the year 2000 and the variable SALES_DATE which contains a SAS date value for each of the twelve months. How many of the original twelve observations in WORK.SALES_INFO […]

By admin | September 8, 2009

SAS Certified Base Programmer 123 Questions (27)

The following SAS program is submitted: data revenue; set year_1; var1 = mdy(1,15,1960); run; Which one of the following values does the variable named VAR1 contain? A. 14 B. 15 C. 1151960 D. ‘1/15/1960’

By admin | September 8, 2009

SAS Certified Base Programmer 123 Questions (26)

The following SAS program is submitted: data work.new; mon= 3; day = 23; year =2000; date = mdy(mon,day,year); run; Which one of the following is the value of the DATE variable? A. a character string with the value ’23mar2000′ B. a character string with the value ’03/23/2000′ C. a numeric value of 14692, which represents […]

By admin | September 8, 2009

SAS Certified Base Programmer 123 Questions (25)

The following SAS DATA step executes on Monday, April 25, 2000: data newstaff; set staff; start_date=today(); run; Which one of the following is the value of the variable START_DATE in the output data set? A. a character string with the value ’04/25/2000′ B. a character string with the value ‘Monday, April 25, 2000’ C. the […]

By admin | September 8, 2009

SAS Certified Base Programmer 123 Questions (24)

The following SAS DATA step is submitted: data sasdata.atlanta sasdata.boston work.portland work.phoenix; set company.prdsales; if region = ‘NE’ then output bostan; if region = ‘SE’ then output atlanta; if region = ‘SW’ then output phoenix; if region = ‘NW’ then output portland; run; Which one of the following is true regarding the output data sets? […]