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, character, graphic or UCS-2. The second parameter is not allowed when the first parameter is graphic and CCSID(*GRAPH:*IGNORE) is in effect for the module. The built-in function is ignored.
Recovery . . . : Omit the second parameter for the built-in function. Compile again.
Technical description . . . . . . . . : CCSID(*GRAPH:*IGNORE) is in effect if it has been specified explicitly on the Control specification, or if neither the CCSID(*GRAPH) keyword nor the CCSID(*EXACT) keyword has been specified on the Control specification.