In reply to Tricia.

The 'same' value for the alignment argument will give us this date 6 years ago (if we used 'year' instead of 'month'). The 'b' value for alignment would give us the beginning of the year, and the 'e' value would give us the end. Try it yourself!

data a;
format same date9. b date9. e date9.;
same = intnx(
'year', /* unit of time interval */
today(), /* beginning date */
-6, /* number of intervals, negative goes to the past */
'same' /* alignment of interval date. "Same" is for same day of month */
);

b = intnx(
'year', /* unit of time interval */
today(), /* beginning date */
-6, /* number of intervals, negative goes to the past */
'b'
);

e = intnx(
'year', /* unit of time interval */
today(), /* beginning date */
-6, /* number of intervals, negative goes to the past */
'e'
);

run;