How can we find out the sequence of programs that have updated the fields of the given file.
For eg. If I have a file ABC and 10 programs have updated the file ABC, then how can we find out in which sequence the programs have updated the file ABC and what was the value in fields after each sequence?
Software/Hardware used:
ASKED:
February 10, 2011 9:15 AM
UPDATED:
February 15, 2011 6:33 PM
without the file already being journalled there is no way to see this information. All you can do is journal the file and run the same programs again over the file to see the journal receiver details which will show you the programs and the order they are touched.
Depending on how you dump the journal we can see the before and after result of each update and the sequence it happened. The output of the dump contains the entire record, but it is one string of data matching your physical record layout.
The EXPJRNE will split that character string into individual fields.
Here is the link http://www.tools400.de/English/Freeware/Utilities/utilities.html
.
As an alternative to journaling, you may create a trigger-program which writes a record with the ‘before-update’ data plus add’l info like program-name, timestamp, userid.
Thus you have full control in respect of which data your ‘log’ needs to contain.
This url brings you to explanatons and sample code on triggerprogramming.
Good luck
DanF
sorry, – url is here:
double sorry — next try:
This is not to gain points – the ‘link’ in the editor is most probpably the cause to my problems to pass the url i refer above. I’ll give it a last try by putting it here as pain text:
http://publib.boulder.ibm.com/html/as400/v4r5/ic2979/info/db2/rbafomstrzahftrb.htm
If the url is not presented in this entry, then Google ‘ibm as400 triggerprogram’
once journalling,the command CMPJRNIMG (compare journal images) is a big help to zero in on fields changed and order of the update programs.