This week Carsten Flensburg provides two sample programs showing how to use the QjoRetrieveJournalEntries API, which is one of the APIs most requested by readers. Each of the two ILE RPG programs, CBX1041 and CBX1042, show how to use the QjoRetrieveJournalEntries API using format RJNE0100 and RJNE0200, respectively.
Both programs produce a simple printout of QSNADS journal entries, which you can easily modify for other journals. Program CBX1041, which uses format RJNE0100, works for V4R4 and up, while CBX1042, which uses format RJNE0200, works only for OS/400 V5R2 and greater.
Download the save file containing the source code.