The duration is not allowed with a date operation.
20
Cause . . . . . : When adding or subtracting a duration to or from a date, the allowed duration built-in functions are %DAYS, %MONTHS, and %YEARS.
Recovery . . . : Correct the duration built-in function. Compile again.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.