Hi,
Is it possible to create stored procedures in this manner --
CREATE PROCEDURE TEST1 ()
-------------------
------------------
BEGIN
if some condition is met THEN
CALL TEST2 ();
END IF;
--------------------
--------------------
END
@
CREATE PROCEDURE TEST2 ()
.................................................. ...............
.................................................. ...............
BEGIN
.................................................. ...............
WHILE condition = 1 DO
CALL TEST1 ();
END WHILE;
END
@
The entry point will always be TEST1 ()....if I try to create them using the regular db2 -td@ -vf <filename>, then it complains that the other procedure doesn't exist... is there a way to accomplish this? thanks!!