SAS Certified Adv Programmer 50 Questions (47)
The SAS data set Sasdata.Sales has a simple index for the variable Date and a variable named Revenue with no index. In which one of the following SAS programs is the Date index considered for use?
a.
proc print data=sasdata.sales;
by date;
run;
b.
proc print data=sasdata.sales;
where month(date)=3;
run;
c.
data march;
set sasdata.sales;
if '01mar2002'd < date < '31mar2002'd;
run;
d.
data march;
set sasdata.sales;
where date < '31mar2002'd or revenue > 50000;
run;
Topics:
SAS Adv Questions |
1 Comment »
A