Main Index |
TIPS Home |
ok_disc_MDYsok_disc_MDYs (routine)
Validate all dates associated with discount securities
Introduced in release: 1.0
Component: Generic
Purpose:
Validates the given dates needed for the discount calculations. Checks that settlement date and maturity date are valid dates. It also checks that settlement date is less than or equal to maturity date.
Results:
The value of the function is true (1) if the dates are valid. The value of the function is false (0) if the dates are 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 and y are single digits representing different dates as follows:
1 = maturity date
7 = settlement date
The errors are:
110x = bad year in date
120x = bad month in date
130x = bad day in date
150x = required date not given
21xy = date x is not less than or equal to y
| Last Mod Date: 07/15/1991 | © 2001 TIPS, Inc. | Doc Version: 5.0 |