By admin | August 24, 2009

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;

One comment | Add One

  1. admin - 08/24/2009 at 10:52 am

    A

Leave a Comment

Leave a Reply

Your email address will not be published.