900-INCREMENT-DATE
900-INCREMENT-DATE takes an input date and processes up to three incremental computations and returns the increment date.
Library
|
CALRTNS |
Input
Field | Type and length | Definition |
---|---|---|
WSDR-FR-DATE
|
A 8 |
From date (yyyymmdd).
An increment of (0,0,0) returns |
WSDR-YEAR-INCR
|
A 5 | Year increment can be positive or negative in range of -200 to +200. |
WSDR-MONTH-INCR
|
A 5 | Month increment can be positive or negative in range of -2400 to +2400. |
WSDR-DAY-INCR
|
A 5 | Day increment can be positive or negative in range of -3200 to +3200. |
WSDR-EOM-ROLLOVER
|
A 1 |
End of month controls direction when intermediate day is too large. "Y" = roll to first of next month "N" = roll back to end of month
|
If the input date century equals 00, it changes to 19 or 20. See Century Parameter Processing.
Output
Field | Type and length | Definition |
---|---|---|
WSDR-TO-DATE
|
A 8 |
To date (yyyymmdd) Valid date calculated on the increments provided that can be used as input on subsequent calls. |
WSDR-ERROR-NBR
|
N 9 |
Error number. See Error Number. |
WSDR-ERROR-VAR
|
A 20 | Input parameter is in error. |
Programming Example
|