Go To Documentation Main IndexMain Index
Go To TIPS, Inc.TIPS Home
ok_avg_life

ok_avg_life (routine)

Validate a given average life

Introduced in release: 1.0
Component: US MBS
Purpose: Tests the given average life in months to be sure it is a valid value. It must be greater than or equal to zero and less than or equal to the number of months from issue date to maturity date.

Results: The value of the function is true (1) if the average life is valid. The value of the function is false (0) if the average life 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 input contains an error.

 6601 = average life < 0
 6602 = average life > number of months from issue date to maturity date

Last Mod Date: 03/01/1990© 2001 TIPS, Inc.Doc Version: 5.0