× 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 Rob,

Instead of the FTP "put" command, "append" will add a record to the target file.

--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx <mailto:petercdow@xxxxxxxxx>
pdow@xxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxx>/

On 3/26/2013 4:51 AM, rob@xxxxxxxxx wrote:
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 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.