U@GETDTFRNBDY
U@GETDTFRNBDY gets a result date from a named calendar that is a specified number of marked days from the input date. For an error in calendar name or from date, nothing is returned. The number of calendar days can be negative. See Century Parameter Processing.
Module | CALRTNS |
Required Input
Field | Type and length | Definition |
---|---|---|
E@DRCALENDAR | A 15 | Name of calendar. |
E@DRFRDATE | N 8 |
Start date from which to check. If E@DRFRDATE equals 00000000, then it calculates backwards from the E@DRTODATE. |
E@DRNBRCALDYS | N 8 | Specified number of marked days. Always positive. |
Output
Field | Type and length | Definition |
---|---|---|
E@DRTODATE | N 8 |
Calculated date. When invalid, the field is cleared and left blank. Note: If E@DRFRDATE = 00000000, then E@DRTODATE is the input and E@DRFRDATE is the output.
|
E@DRERRORNBR | N 9 |
Error number. See Error Number |
E@DRERRORVAR | A 20 | Input parameter is in error. |
Programming Example
|