× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have to handle error in trigger, how can i do it?
For example I need to perform following kind o logic in a sql trigger:

INSERT INTO FILE_ONE
VALUES(:WS-VAR1)
 
IF SQLCODE <> ZERO
    INSERT INTO FILE_TWO
    VALUES(:WS-VAR2)
ENDIF

In the above statements if the SQLCODE is not zero then i have to insert a record in FILE_TWO.
So how can i check the SQLCODE condition in triggers? I tried taking into debug, but the value returned for checking SQLCODE was not in scope of human understanding. Pl help.

PS: Pl select "reply all" while replying to this doubt.
 
"Procrastination is abusing Time 'coz' Dream is to Goal within the set timeline"
 
Thank You,
Regards,
Rajesh Binani

Email : binani_rajesh@xxxxxxxxx
Mobile: 91.939.101.2722


See the Web&#39;s breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.com/

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.