473,513 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with SQL triggers on the ISerier

2 New Member
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
1 1237
mendiehu
2 New Member
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

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

Similar topics

7
6382
by: Don Freeman | last post by:
Seems like whatever value I use for the first int field (starting position) the substring procedure negates it and triggers a String index out of range error. I've tried all sorts of work...
0
1559
by: Marko Damaschke | last post by:
Hello alltogether, i'm working on a database-plattform which should work with fail-over-technics. Therefor 2 identic machines with internal RAID are available, which work in...
4
2516
by: Mark Flippin | last post by:
I'm just starting to use triggers in my databases and find the support in Enterpise Manager lacking. Using Enterprise Manager and Query Analyzer you can maintain the triggers, but it's...
1
1810
by: tim.pascoe | last post by:
I'm trying to generate scrips for a database, and everything so far has worked fine, except for the triggers. When I try and script existing triggers, all I get is a blank file - no SQL script. I...
6
3280
by: George McLean | last post by:
Hello, I am trying to isolate some performance issues. The database is DB2 v8.1 running on a Win2000 server with 4 processors and 1gb of RAM. The application is a GIS application that uses...
3
6833
by: Joachim Klassen | last post by:
Hi all, first apologies if this question looks the same as another one I recently posted - its a different thing but for the same szenario:-). We are having performance problems when...
20
2535
by: Alan Silver | last post by:
Hello, I have read about the problems that IE has when using a doctype of HTML 4.01 Transitional. I was advised to use Strict wherever possible. My question is, does the same apply to XHTML...
0
8305
debasisdas
by: debasisdas | last post by:
trigger sample code Ex#10 ======================= INSTEAD OF TRIGGER ---------------------------------------- create or replace trigger mytrig instead of delete or insert or update on eview...
0
4474
debasisdas
by: debasisdas | last post by:
This thread contains some useful tips/sample codes regarding TRIGGERS in oracle, that the forum members may find useful. TRIGGERS: =============== Database trigger is a PL/SQL block that is...
4
5696
by: --CELKO-- | last post by:
I need to convert a bunch of DB2 triggers to Oracle. Is there any kind of tools for this?
0
7267
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7553
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7120
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
3247
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1609
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
466
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.