Main Index |
TIPS Home |
ok_jpgb_inok_jpgb_in (routine)
Validate all inputs associated with Japanese bonds
Introduced in release: 1.0
Component: Non-US (developed mkts)
Purpose:
Validates all the given values needed for the Japanese bond calculations.
Special Considerations:
Since the maturity date on a Japanese government bond is always a business day on or after the 20th of the month the maturity date can be on the 20th, 21st, or 22nd and still be in sync with a first coupon date on the 20th.
To validate all inputs for Japanese bonds with odd last coupon periods use the ok_jpgb_inol routine.
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
500 = invalid day_type
600 = invalid cpn_freq
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
22xy = date x is not in sync with date y
| Last Mod Date: 12/19/1991 | © 2001 TIPS, Inc. | Doc Version: 5.0 |