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



John,

First of all, for tracking all of the updates of a master file I would use
a journal. No code modification necessary. Records user, job, date,
time, program, etc all automatically.

But if that doesn't trip your trigger then you may want to use DDL instead
of DDS and try something like:
CREATE TABLE ROB/MASTAUD as (select MAST.*,
cast (user as char (10)) as auduser,
cast (current timestamp as timestamp) as audtimestm
from mast ) with no data
Fancy that up by figuring out how to add
CONSTRAINT MAST_TO_MASTAUD FOREIGN KEY (MYPRIMARYKEY) REFERENCES
ROB/MAST (MYPRIMARYKEY) ON DELETE NO ACTION ON UPDATE NO ACTION)
and that foreign key constraint will definitely tie those two databases
together. Add a trigger on MAST to write a row to MASTAUD every time MAST
is updated and you're done.

Not much of an RPG question though.

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.