|
First of all, how does FTP insert a single row? I can see how ODBC, etc;
but FTP? FTP should be able to put a single row table up on your IBM i.
But would that table still include the trigger or would all definitions of
the table now be changed? Or does the (REPLACE option on ftp allow this?
One thing to consider is not adding a new row, nor updating this row after
it's written, but instead intercepting this row before it's written.
Triggers allow that. ADDPFTRG ... ALWREPCHG(*YES). That ALWREPCHG(*YES)
is the key to interception. Then you can take buffer of the row, before
it's written to disk, and modify the contents. Before IBM added "row
change timestamp" and other such capabilities to the database this was a
common use of triggers.
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
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.