I am new to DB2 and as400, but not to databases. Background is java and Oracle PL/SQL development.
I created schema test2 and I am trying to compile SQL procedure below. Is there something wrong with this procedure? I am trying to create procedures in general but with no success. Machine is V5R1. Would someone give me a simple yet valid procedure that has no dependencies on their own machine. ( you can 'fix' my procedure and repost if you like ) I will try to compile on mine. I suspect that I am lacking privileges needed to create procedures. Please help.
Thanks, pfist
----------------------------------------------------
create procedure test2.doubleIt( INOUT p_in integer )
LANGUAGE SQL
begin
SET p_in = p_in * 2;
end;
I created schema test2 and I am trying to compile SQL procedure below. Is there something wrong with this procedure? I am trying to create procedures in general but with no success. Machine is V5R1. Would someone give me a simple yet valid procedure that has no dependencies on their own machine. ( you can 'fix' my procedure and repost if you like ) I will try to compile on mine. I suspect that I am lacking privileges needed to create procedures. Please help.
Thanks, pfist
----------------------------------------------------
create procedure test2.doubleIt( INOUT p_in integer )
LANGUAGE SQL
begin
SET p_in = p_in * 2;
end;