Main Index |
TIPS Home |
ok_auct_inok_auct_in (routine)
Validate all inputs associated with treasury securities
Introduced in release: 1.0
Component: Generic
Purpose:
Validates all the given values needed for the treasury calculations.
Results:
The value of the function is true (1) if the inputs are valid. The value of the function is false (0) if the inputs 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. The errors are:
200 = invalid given_flag
4001 = given yield is less than or equal to zero
4002 = given price is less than or equal to zero
4100 = coupon rate is less than zero
4200 = redemption value is less than zero
Where x and y are single digits representing different dates as follows:
1 = maturity date
2 = dated/issue date
3 = first coupon date
7 = settlement date
The date errors are:
110x = bad year in date
120x = bad month in date
130x = bad day in date
150x = required date not given
20xy = date x is not less than date y
21xy = date x is not less than or equal to y
| Last Mod Date: 03/01/1990 | © 2001 TIPS, Inc. | Doc Version: 5.0 |