By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,558 Members | 1,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,558 IT Pros & Developers. It's quick & easy.

Problems with SQL triggers on the ISerier

P: 2
Hello,

I'm trying to do the following:

CREATE TRIGGER SALIB."BOL Achiving"
AFTER UPDATE OF BLBOYM, BLBLST ON SALIB.SABL100P
REFERENCING NEW NEW_ROW
FOR EACH ROW
MODE DB2ROW

INSERT INTO SALIB.SABL900P
SELECT * FROM SALIB.SABL100P
WHERE BLBOYM = NEW_ROW.BLBOYM

However it will not accept "NEW_ROW.BLBOYM". It tells me that it doesn't exist. If I take away the "NEW_ROW" in front of BLBOYM it accepts it, but then it would not reference the "after" value of BLBOYM.

Of course I double checked and BLBOYM does exist in the file SABL100P.

Any help will be greatly appreciated.

Hugo
Mar 7 '07 #1
Share this Question
Share on Google+
1 Reply


P: 2
Hello,

I'm trying to do the following:

CREATE TRIGGER SALIB."BOL Achiving"
AFTER UPDATE OF BLBOYM, BLBLST ON SALIB.SABL100P
REFERENCING NEW NEW_ROW
FOR EACH ROW
MODE DB2ROW

INSERT INTO SALIB.SABL900P
SELECT * FROM SALIB.SABL100P
WHERE BLBOYM = NEW_ROW.BLBOYM

However it will not accept "NEW_ROW.BLBOYM". It tells me that it doesn't exist. If I take away the "NEW_ROW" in front of BLBOYM it accepts it, but then it would not reference the "after" value of BLBOYM.

Of course I double checked and BLBOYM does exist in the file SABL100P.

Any help will be greatly appreciated.

Hugo
Never mind. Turns out I had an old version of ISeries Navigator.

Thanks,

Hugo
Mar 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.