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



This is a multipart message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
What an amazingly simple question!  I don't have time to follow this thru
to completion right now but the following command worked on my machine:
ADDPFTRG FILE(ROB/QPGMSRC)
         TRGTIME(*AFTER)
         TRGEVENT(*INSERT)
         PGM(ROB/TEST)
And the standard trigger data structure contains the member name and
everything.  I guess I don't see why this wouldn't work.
And I've written triggers to record data to a log file before.

You will want to verify that any changes with tools like:  CODE/400,
Turnover change management, etc will record the correct user profile, if
that is one of your design fields that you want to store in the log file.
Sometimes server programs run under another user profile than what is
being processed.

One other concern.  Do editors replace a record, or the whole file?  If
they replace the whole file then your drop of water will be lost in the
ocean - all records might be recorded as a change.  Gee, if I exit editing
and say renumber yes...

Good thinking.


Rob Berendt
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
Benjamin Franklin




vsprakash@hmil.net
Sent by: rpg400-l-admin@midrange.com
04/19/2002 03:24 AM
Please respond to rpg400-l


        To:     rpg400-l@midrange.com
        cc:
        Fax to:
        Subject:        Track Source Changes


[ Converted text/html to text/plain ]

Hi,

     Is there anyway, one can record changes to an RPG Program Source and
maintain audit trail programmatically. Assuming an User changes the Source
Code of a Program, is it possible that a trigger program is auto invoked
to
record the changes to a user specified database file. Please help..



V.S. Prakash,
System Analyst

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.