Yes, I use SAS for everything - even determining how many more Friday the 13th we have this year...
I woke up this morning (June 13, 2014) and realized it was Friday the 13th. We haven't had one in a while (not since last year, actually), and I got to wondering how many more we will have this year. I guess I could have flipped through a calendar and checked month-by-month, but no respectable programmer would do it that way! :)
So I wrote a little bit of SAS code that prints out every Friday the 13th this year ...
data lucky13; do day = '01jan2014'd to '31dec2014'd by 1; if trim(left(put(day,downame.)))='Friday' and put(day,day.)=13 then output; end; run; proc print data=lucky13; format day date9.; run;
And here are the results ... just one Friday the 13th in year 2014! :)
But, in addition to being a programmer, I'm also a "Graph Guy" ... therefore I always try to find a graphical way to visualize my results. And what better way than a custom SAS/Graph calendar chart! Click the snapshot below to see the full-size calendar, with hover-text showing the exact dates: