iSeries Journal Receiver Monitoring
Posted on 2014-04-03
I have a passing knowledge of CL and some of the journal-related commands on the IBM iSeries machines. We are using V6R1. My assignment is to find a way to measure how long journal receivers are lasting before they are filled and closed. If entries are filling the receivers too quickly, we may have a runaway job, which we need to kill and investigate.
Can I run some combination of queries, workfiles, data areas and system commands in a CL program to do the following?
1) Get the output for WRKOBJ OBJ(*ALL/TPS*) OBJTYPE(*JRNRCV) into a workfile.
2) Loop through those objects and pass the receiver numbers to DSPJRNRCVA JRNRCV([number from workfile]).
3) Save the receiver number, attach date and time and detatch date and time to another workfile.
The commands I have looked at so far do not all allow *OUTFILE output, so with my limited abilities I can't even say if this technique is possible. Thanks in advance for any assistance.