IBMi Reading my Journal
All, Ever had a situation where data was being erroneously written, or simply disappeared and you had no idea why. For anyone with a journaled database on the IBMi this will be an all to familiar issue. A commitment control boundary may undo your updates, or the data simply doesn't look right as it is being updated elsewhere in your call stack, far away from the code area you are presently maintaining. When this happens to me I usually like to review the entries in the journal and analyse the database I/O data to get a feel for what is happening. So how do I go about doing this..... Firstly I would identify the journal that is being used. This may change from time to time so it is best to check each and every time you perform these steps. Do a WRKOBJ for the library and main file you are trying to track entries for. WRKOBJ OBJ( DATALIB / TARGETFILE ) Take option 8=Display Description and page down three times or do a DSPFD for the given file and search...