By admin | January 7, 2010

SAS Certified Adv Programmer 130 Questions (47)

The following SAS program is submitted:

options yearcutoff = 1950;
%macro y2kopt(date);
    %if &date >= 14610 %then %do;
        options yearcutoff = 2000;
    %end;
    %else %do;
        options yearcutoff = 1900;
    %end;
%mend;

data _null_;
    date = "01jan2000"d;
    call symput("date" ,left(date));
run;

%y2kopt(&date)

The SAS date for January 1, 2000 is 14610 and the SAS system option for YEARCUTOFF is set to 1920 prior to submitting the above program. Which one of the following is the value of YEARCUTOFF when the macro finishes execution?

A. 1900
B. 1920
C. 1950
D. 2000

2 comments | Add One

  1. admin - 01/7/2010 at 2:54 pm

    D

  2. j - 01/21/2015 at 9:23 pm

    can anyone explain
    why the clause
    options yearcutoff=1950;
    has no influence

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *