CAS 6


wadate
- Summary

Summary

Calculate a Weighted Average Date.

Description

Note* Negative values not permitted in weighting field.

The result will be rounded to the closest whole day.

Examples

wadate MATDATE CURBAL  
wadate (ORIGDATE mplus 360) CURBAL  
wadate NRADATE CURBAL (RATETYPE in 'A')            

Syntax

(Option) wadate DateField Weight (SelectionStatement)

Left Arguments

Name Data Type Input Type Description Optional Default
Option Numeric Constant 0 - Include days in calculation; 1 - Disregard days in calculation Yes

Right Arguments

Name Data Type Input Type Description Optional Default
DateField Date Field No
Weight Numeric Field Yes
SelectionStatement Boolean Field Expression to select records that will be applied to the calculation. Yes 1

Result

Type: Date

yyyymmdd



Build 6.0.624