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



Hi David,

The technical reason why the trigger does not fire is because a file delete
is not a data manipulation language (DML) action, but a data definition
language (DDL) action.

SQL inserts, updates, deletes, and selects are DML (as well as high level
language (RPG)  reads, writes, updates and deletes).

PF creates and deletes are DDL.

It works the same way with other databases (e.g., Oracle, TRUNCATE will not
cause a trigger to fire because it is a DDL instruction that clears the file
without rollback possibilities).  If you do a DELETE FROM filename, then if
you mess up, you can rollback the transactions without committing.

Hope this helps.

William

date: Wed, 5 Mar 2003 12:39:24 -0600
from: "Leland, David" <dleland@xxxxxxxxxx>
subject: Trigger

If I have a file in QTEMP with a trigger attached to it, when my job ends
(and QTEMP gets deleted), does the trigger program get called?  If so, for
each record in the file?

Dave




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.