There could be also Com_Id overflow or type mismatch.
Declare Com_Id as RPTDEFN.NAME_ID%TYPE, not NUMBER(10).
I'd suggest to write an exception block and write all the variables out.
Feel free to post further questions.Code:... EXCEPTION WHEN OTHERS THEN dbms_output.put_line(length(Com_list)); dbms_output.put_line(Com_list); dbms_output.put_line(CompId) ...
Ales




Reply With Quote