Thanks again n_i!
I've madesome changes to my script. Now it is giving me this error
================================================== ========
SQL0501N The cursor specified in a FETCH or CLOSE statement is not open.
================================================== ========
What I would like to do is like this:
================================================== ========
begin
declare c1 cursor...
for read only
open c1
loop...
fetch c1 into v_id, v_name;
call session.UPDATE_TBL(v_id, v_name); (is this possible?)
end loop...
close c1;
end@
================================================== ========
session.UPDATE_TBL procedure is just a one UPDATE statement.
Please help. Many Thanks again!
[-]