The Retrieve Journal Entry (RTVJRNE) command enables you to either retrieve journal entries from your program or to specify an exit program to automatically receive journal entries as they are written to a journal receiver.
The latter method, using an exit program, was incorporated in the DspAudLog utility published in the June 2000 issue of iSeries NEWS. The utility included an exit program to save journal entries to an audit database.
In this newsletter tip, Carsten Flensburg provides an exit program and a simple application that lets you experiment with the exit program to receive journal entries quickly and easily.
At the heart of the source provided in this tip is RPG ILE exit program CBX902, which writes journal entries into log file CBX902F. A sample customer data file is also provided. RCVJRNE will monitor this customer data file for changes and will call exit program CBX902 when changes are detected.