The second parameter is not allowed for %CHAR.
20
Cause . . . . . : The second parameter for built-in function is not allowed when the first parameter is not of type date, time, or timestamp. The built-in function is ignored.
Recovery . . . : Omit the second parameter for the built-in function. Compile again.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.