|
> From: Rouet Alexandre [mailto:AlexandreRo@METRO.FR]
> Do you know if there is a way to get the day of a week using sas ?
> (e.g. how to know that the 1st of july 2000 is a Saturday ? )
review the weekday function which returns in integer in (1:7)
you could use a format to return the day in text:
proc FORMAT;
value weekday 1='Sunday' 2='Monday' ...;
data _null_;
*weekday = weekday(<valid SAS date>);
weekday = weekday('12feb89'd);
put Weekday= weekday.;
stop;run;
Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov
OpSys: WinNT Ver: 8.1
---> cheerful provider of UNTESTED SAS code!*! <---
|