Thursday, 8 August 2013

Macro variable to SAS date

Macro variable to SAS date

quick question here.
How could I adapt this code so that it would work with %let DTD=2012-12-32;
%let DTD=31-DEC-2013;
DATA _Null_;
dd="&DTD"d;
put dd;
RUN;
Then dd has a value of 19723. Thanks in advance !

No comments:

Post a Comment