[blue]I don't think INTCK will do it. INTCK will return the number of 'Day Intervals' between to dates. I can get the same value by substracting my two dates. Following an example from SAS, I tested the following:
d=intck'DAY',epiadmit,today));
w=intck('WEEK',epiadmit,today));
wdays = d-(w*2);
This purports to count only weekdays (i.e., knocks off two days for every week between the two dates). The problem is that it will substract two days for every week even if only one weekend day occured within the timespan. For example, Sunday (9/7/03) to Friday (9/12/03) returns 5 Days; Saturday (9/6/03) to Friday (9/12/03) returns 4 Days (even though the start date is one less. This must be because you don't get credit for a week until you hit both Saturday and Sunday.
It's still a useful function, but doesn't give me what I need (or, more specifically, doesn't give me what I need for a small percentage of the records).