I called each stored procedure separately in my stored procedure, and it works now.
[code]
CONNECT RESET
$
CONNECT TO MAXDB71
$
DROP PROCEDURE ARC.ARC_RESTORE
$
CREATE PROCEDURE ARC.ARC_RESTORE ()
LANGUAGE SQL
BEGIN ATOMIC
DECLARE stmt varchar(32000) default ' ';
set stmt = '
CALL ARC.arc_disable _trig(''MAXIMO' ',''WORKLOG_T'' )
';
...
User Profile
Collapse
-
DB2 Nested Stored Procedures and labeled_begin_atomic error
In DB2 UDB, I call a stored procedure, which in turn calls a number of other stored procedures. I am used Command Editor.
Here is the call which fails and the error message:
call arc.arc_restore ;
------------------------------------------------------------------------------
call arc.arc_restore
SQL0104N An unexpected token "CALL ARC.ARC_DISABLE _TRIG('MAXIMO', 'WORKLOG_T"
was found following...
No activity results to display
Show More
Leave a comment: