× 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.



We use triggers to document certain changes to our main customer master
file, Mirror changes to remote systems and finally calculate field values,
(some in other files), based on the value of other fields.  We used to write
a module to perform these functions, but someone would create a new
application that updated a few fields directly, not using our modules and
fields would not be calculated correctly.  Triggers solved this problem for
us.  Now we don't worry about new application development forgetting some of
our business rules.

Triggers are programs attached to a file and called by the data base
manager.  Then can be called before or after an insert, (add), delete or
update to the file.  Once written and debugged thoroughly, you can almost
forget about them.  Some ONE should take responsibility for the trigger
program and be call the data base administrator in charge of the file that
the trigger is attached to.  I say this because triggers enforce business
rules and if completely forgotten about, well you just forgot about your
business rules...

Christopher K. Bipes            mailto:ChrisB@Cross-Check.com
Sr. Programmer/Analyst          mailto:Chris_Bipes@Yahoo.com
CrossCheck, Inc.                http://www.cross-check.com
6119 State Farm Drive           Phone: 707 586-0551 x 1102
Rohnert Park  CA  94928         Fax: 707 586-1884



-----Original Message-----
From: keshava narasimha [mailto:anandthirta@hotmail.com]
Sent: Friday, June 18, 1999 7:53 AM
To: RPG400-L@midrange.com
Subject: Triggers


Hi !



What are triggers? Where & how are they used  in the AS400 development 
environment?

Illustrations with  examples will help.

Thanks very much .

Keshav


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.