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 are written to the WORK.REPORT data set?
A. 2
B. 3
C. 6
D. 9
Topics:
SAS Base Questions |
3 Comments »
C
can some one please explain this one…
@sowmya, if qtr(sales_date) ge 3, output when the quarter is greater than or equal to 3, that is to say, quarter 3 and 4. There are six months for quarter 3 and 4 in 2000. So six observations are written.