If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Rebind error on update

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-21-05, 11:22
ApoPen ApoPen is offline
Registered User
 
Join Date: Jul 2004
Location: Ottawa, Canada
Posts: 58
Rebind error on update

I get the following error when the update gets executed on this trigger:

SQLSTATE 56098: An error occurred during implicit rebind or prepare.

Code:
CREATE TRIGGER InsertFe_Tgr
AFTER INSERT ON DeliveryJob
REFERENCING NEW AS DJ_New
FOR EACH ROW MODE DB2SQL
BEGIN ATOMIC
    IF SUBSTR(DJ_New.CCN,1,4) = '80' THEN
        IF (SELECT 1 FROM CargoFolder CF WHERE CF.CCN = DJ_New.CCN AND CF.BKAG_OrgId = '12000.1' AND CF.CAReference3 != 'L' AND CF.Port != '07') IS NOT NULL THEN
            UPDATE DeliveryJob DJ SET DJ.DeliveryStatus = 26 WHERE DJ.Id = DJ_New.Id;--
        END IF;--
    END IF;--
END;
I looked into the error and it said to rebind the package using the rebind command. Not too sure how to get the package name for the rebind command. Can some shed abit more light on this for me, thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On