|
|
板凳

楼主 |
发表于 2010-8-26 03:11:03
|
只看该作者
Re: 怎么写一个关于一个月内工作日的SAS.急!!!!
[code:86wil0jj]%macro check(mon=,yr=);
data a;
d1=mdy(&mon.,1,&yr.);
flag=ifc(weekday(d1) in (2,3),'check on 4th day','check on 5th day or later');
put flag;
run;
%mend;
%check(mon=9,yr=2010);[/code:86wil0jj]
I do not think we know what you really wanted.
what I wrote is about how to check when the date is available. |
|