From a SAS date value, returns an integer that corresponds to the day of the week.
specifies a SAS expression that represents a SAS date value.
x=weekday('16mar97'd); put x;
1