Only two parameters may be specified for %DEC when the second parameter is a data format.
20
Cause . . . . . : When %DEC is used to convert a Date, Time, or Timestamp value to decimal, at most two parameters may be specified. The third parameter is ignored.
Recovery . . . : Remove the third parameter for built-in function %DEC. Compile again.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.