Hello,
I am writing a stored procedure which will create a large amount of data to be sent to MQSERIES. My stored procedure obtains data from our tables and creates the string. I have tried to do the following and I receive an error (PLS-00382: expression is of wrong type).
p_buffer := p_buffer || rpad(v_scope,5000,v_space);
Please note that p_buffer is defined as a clob and v_space is a varchar.
I have done some research and I think that I should use
the append function below
dbms_lob.Append(p_buffer, rpad(v_scope,5000,v_space))
However, I receive the following error messages.
PLS-00306: wrong number or types of arguments in call to 'APPEND'
PL/SQL: Statement ignored
I would appreciate any help/comments.
Thank you,
Teresa Brinkley
I am writing a stored procedure which will create a large amount of data to be sent to MQSERIES. My stored procedure obtains data from our tables and creates the string. I have tried to do the following and I receive an error (PLS-00382: expression is of wrong type).
p_buffer := p_buffer || rpad(v_scope,5000,v_space);
Please note that p_buffer is defined as a clob and v_space is a varchar.
I have done some research and I think that I should use
the append function below
dbms_lob.Append(p_buffer, rpad(v_scope,5000,v_space))
However, I receive the following error messages.
PLS-00306: wrong number or types of arguments in call to 'APPEND'
PL/SQL: Statement ignored
I would appreciate any help/comments.
Thank you,
Teresa Brinkley