Did you try...
Specifies an external procedure that is written in ILE CL, or an RPG
procedure to be called by ILE CL. Use *CL if your program uses return
values with data types that CL handles differently from RPG. For
example, use *CL when prototyping an RPG procedure that is to be
called by a CL procedure when the return value is 1A.
on your RPG entry parm?