Tracking Changes to Files

0 pts.
Tags:
Application development
AS/400
AS/400 careers
Backup & recovery
CLP
DataCenter
DB2 Universal Database
Email
IBM Marketing Sound Off
PC/Windows Connectivity
Printing
RPG
RPGLE
Security
Web development
Requirement:- To track any changes to Two files A and B and write fields of A and B to an output file C. A is related to B (A.Employee = B.Employee) Could you please suggest a good approach for this? I am currently using the approach of journalling. 1. Both A and B are journalled. 2. If Any changes to A, then the fields of the changed record of A and corresponding record of B are written to C 3. If Any changes to B, then the fields of the changed record of B and corresponding record of A are written to C. (If already present, Update else insert) Do you think this is a good approach?Please provide your valuable inputs. Regards, EsJay
ASKED: May 11, 2007  5:44 AM
UPDATED: August 13, 2007  12:18 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi EsJay

Journalling the files is a good way to achieve what you want although as an alternative you could look at the use of database triggers.

A database trigger can be defined to call a program whenever the physical files are updated (or records created).

There are a lot of examples you can find via Google, search for “database triggers as400″, although a good general page with an example can be found at http://www.tylogix.com/Articles/TriggerTechniques.htm

Hope it helps

All the best

Jonathan

test

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following