DATECALC macro: coding rules

Purpose:
Adds or subtracts a number of days to any date and places the result into the target user date of any format.
Usage:
%DATECALC &fdate &fmask &sign &days &tdate &tmask THRESHOLD YY
Where:
&fdate
The input date.
&fmask
Input date format. For example, MMDDYY.
&sign
PLUS when adding days, MINUS when subtracting days.
&days
Number of days to add or subtract.
&tdate
Output date.
&tmask
Output date format. For example, YYMMDD.
THRESHOLD YY
Threshold year. This is an optional parameter. The default is 00.
Notes:
Coding 0 for the threshold value for this macro results in the default threshold value being used in the FSDATSRV module. Currently, the default threshold in FSDATSRV program is 40. The threshold of zero is recommended. Refer to the THRESMOD= option of EZPARAMS/EASYTRAN for additional ROLLING or FIXED threshold flexibility.
Examples:
%DATECALC F-DATE YYMMDD PLUS 15 T-DATE MMDDYY

%DATECALC F-DATE YYMMDD PLUS 15 T-DATE MMDDYY THRESHOLD 40