|
| |EXCUSE ME??? I'm sure I'm not reading that correctly. It seems to me |that you're saying: | |1) I add program TRG1 in library LIB1 to file FIL1 in library LIB2. When |I add the trigger the system can file the trigger and all is good. | |2) I have both LIB1 and LIB2 in my library list, and I update a record. |The trigger is fired and all is good. | |3) I remove LIB1 (the one with the trigger) from my library list and |update the file again. You're saying the trigger is NOT FIRED? No way? | |4) Would same be true if the trigger was in the same library as the |file, but the file wasn't in your library list when you updated it (say |you used SQL and said "update LIB1/FIL1...") again trigger would NOT |FIRE? | |Also, if this is true, does the trigger not fire, or does the update |fail? | |I simply can't believe this, but I don't have the time to test now. If |this is true this is a _major_ design flaw in triggers, and I can't |believe that is the case. | |Am I reading this incorrectly? | |-Walden Yep. That's why I was surprised as well. But it's true. In my particular test, File1 was in Lib1 and TriggerPgm was in Lib2, and neither library was in my library list. The Lib2 was hardcoded on the trigger (as opposed to using *LIBL). I used UPDDTA to update the file, and no banana. To make sure the trigger was working normally otherwise, I then changed my library list to include both Lib1 and Lib2, and the trigger fired normally. That's the gist of what I'm hearing from the others here as well. Like Mr. Ripley said, believe it....or don't. ;->
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.