Arithmetic date expressions
Addition
A specified number of years, months, or days can be added to a date. Two dates cannot be added together. The quantity to be added is designated by a system data operator indicating the measurement (&YEARS, &MONTHS, &DAYS) preceding the value to be added. If the unit of measurement is not specified, it is assumed to be &DAYS.
If the value being added to a date is negative, it is equivalent to subtracting its absolute value.
Subtraction
Two dates can be subtracted, the difference being the signed number of days between the two dates.
The result will be negative if the first date precedes the second date. A specified number of years, months, or days can be subtracted from a date. The quantity to be subtracted is designated by a system data operator indicating the measurement ( &YEARS, &MONTHS, &DAYS) preceding the value to be subtracted.
If the value being subtracted from a date is negative, it is equivalent to adding its absolute value.