Main Index |
TIPS Home |
ok_exdol_MDYok_exdol_MDY (routine)
Validate ex-dividend date for a bond
Introduced in release: 1.0
Component: Generic
Purpose:
Validates the ex-dividend date.
ex-dividend date must be a valid date
ex-dividend date must be less than the next coupon date
ex-dividend date must be greater than or equal to the previous
coupon date
Results:
The value of the function is true (1) if the date is valid. The value of the function is false (0) if the date is invalid. The variable status will contain the reason it is invalid.
Error Conditions:
The variable status contains a non zero value upon returning from the function when the inputs contain an error. Where x is single a digit representing different dates as follows:
9 = ex-dividend date
The errors are:
110x = bad year in date
120x = bad month in date
130x = bad day in date
150x = required date not given
160x = date not between coupon dates
| Last Mod Date: 10/20/1998 | © 2001 TIPS, Inc. | Doc Version: 5.0 |