Not to beat a dead horse, but I'd stay away from INTCK and INTNX because both use the beginning of the interval specified (unless this is what you want).
INTNX('interval',start-from,increment<,'alignment'>)
For example, if today's date were March 31, 2002, then INTNX('MONTH',today(),-6) would come up with the SAS Date equivalent of October 1, 2001, when you really may want October 31, 2001. There is the optional "alignment" option which you can specify to use the beginning, middle, or end of the MONTH (in this case). This doesn't usually get the calculation to the day, though.
To be more accurate (comparing by the same day of the month), use the following:
if date > mdy(day(today()),month(today())-6,year(today()));
This will subset your data for dates that are within the last six months. Keep in mind that the YOUNGER SAS Date is a HIGHER value.
I know this seems like a rediculously long way to get a SAS Date from six months ago, but it is more accurate to the calendar day.
And yes, you can search SAS' technical support website at
or take a look at the SAS OnlineDoc:
Click on the sod_register.html to register (don't worry, they won't spam you...they just want your email so that they know if anybody is really using it)
Log in by clicking on the sashtml link.
Good luck,
ucandoit