All,
I changed some datatypes from varchar2 to CLOB. Now a function throws up this error

ORA-06502: PL/SQL: numeric or value error: character string buffer too small

I have tried high settings for
dbms_output.enable( 2000000)
serverpout
arraysize
longchunksize etc to no avail.

I understand there is a backend procedure (DBMS_?) that could help with this?

Thanks for suggestions