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



What error are you receiving in the joblog ?

 

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Turnidge, Dave
Sent: 08 March 2007 15:15
To: RPG programming on the AS400 / iSeries
Subject: Triggers 101

I am attempting to get our triggers under control and have run into what
I *think* is a problem. It has to do with record locks, and the
discussion we had recently which also included a record lock discussion,
didn't seem to answer my question.

We have an order entry program that updates/adds to file OETITLP. This
program ALSO updates a file OESECTP. OETITLP has a trigger attached that
ALSO updates OESECTP. I believe this is causing a lock issue when the
trigger attempts to update the SAME record in OESECTP that is updated by
the program.

It seems to be that a trigger should not be updating a file that is
being updated by a program that triggers the trigger. Or, maybe, the
trigger needs to be smarter and not run when the trigger is triggered by
said program.

Is there a SOP for this?

Thank you,

Dave
642-371-1163

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.