You are on page 1of 1

print | close

IFS Journal Monitor -- Part 1


System iNetwork Systems Management Newsletter
Carsten Flensburg
Carsten Flensburg
Wed, 10/27/2004 (All day)
This issue's utility from Carsten Flensburg is an IFS journal monitor that records when a new object is created
in a specified IFS directory. The code presented here is based on the methodology discussed in the October 9,
2003,newsletter, which you can read at http://www2.systeminetwork.com/article.cfm?ID=17415.
There are two CL programs, CBX925X and CBX925C, and ILE RPG program CBX925.
CL program CBX925X creates the required journal objects and programs based on its two input parameters, the
library to store the compiled utility and the name of the IFS directory to monitor. In addition to creating the
data area, the journal receiver, and the journal needed for this utility, it compiles programs CBX925C and
CBX925.
ILE RPG program CBX925 is the receive journal exit program, while CL program CBX925C runs on a job queue
as a never-ending program. CBX925C configures RCVJRNE to call exit program CBX925 when a journal entry
is received. If no entries have been received for 25 seconds, it passes a zero to indicate that no entries are
available. The 25 seconds is specified to prevent the job from timing out after 30 seconds, which is the default
delay time for a controlled end job request.
The source code for CBX925 includes more information on how the exit program works, as well as links to IBM
documentation about journal entries and their layouts, and the Receive Journal Entry (RCVJRNE).
You can download all of the source for this utility from http://www2.systeminetwork.com/noderesources
/code/clubtechcode/IFSLog.zip.
The above utility was written by Carsten Flensburg. For questions regarding this tip, contact Carsten at
mailto:flensburg@novasol.dk.
Source URL: http://iprodeveloper.com/database/ifs-journal-monitor-part-1
IFS Journal Monitor -- Part 1 http://iprodeveloper.com/print/database/ifs-journal-monitor-part-1
1 de 1 27/09/2013 09:59 a.m.

You might also like