Hi All:
I am java developer writing first Stored Procedure. When i do build for debug in Db2 Development Center tool I get the following error.
WWWTRN.UPDATE_MAG_SELECT_LIST - Build for debug started.
DROP SPECIFIC PROCEDURE WWWTRN.SQL101102150918100
WWWTRN.UPDATE_MAG_SELECT_LIST - Drop stored procedure completed.
[IBM][CLI Driver][DB2/LINUXX8664] SQL0444N Routine "*PILEMODE" (specific name "PSMD_SET_COMPMODE") is implemented with code in library or path ".../sqllib/function/unfenced/db2psmdr", function "*g" which cannot be accessed. Reason code: "4". SQLSTATE=42724
WWWTRN.UPDATE_MAG_SELECT_LIST - Build for debug failed.
WWWTRN.UPDATE_MAG_SELECT_LIST - Roll back completed successfully.
*******************************************
The Stored Procedure :
*******************************************
Code:
CREATE PROCEDURE WWWTRN.UPDATE_MAG_SELECT_LIST ()
DYNAMIC RESULT SETS 1
------------------------------------------------------------------------
-- SQL Stored Procedure
------------------------------------------------------------------------
BEGIN
DECLARE seqnbr INTEGER DEFAULT 1;
Declare counter Integer;
Declare seqData Integer;
DECLARE c1 CURSOR FOR
SELECT seq_nbr
FROM wwwtrn.mag_select_list as magSelectList
WHERE list_id = -11
ORDER BY option_text_displayed;
set counter = (select count (*) from wwwtrn.mag_select_list WHERE list_id = -11 );
OPEN c1;
fetch c1 into seqData;
WHILE seqnbr<counter DO
UPDATE mag_select_list
SET seq_nbr = seqnbr;
-- WHERE CURRENT OF c1;
SET seqnbr = seqnbr+1;
END WHILE;
CLOSE c1;
END
I tried to run after simple build(i.e with out debug) it said the transaction log is full something like.Dont have the log stored so cant paste the exact error.