Event writer (EW)

The event writer (EW) subtask provides support for writing event records to an event data set. An event record is built from job-tracking-exit records that are transmitted to the EW subtask via an in-storage queue, the WTRQ queue.

The EW subtask passes job and started-task termination (3P) events to the job completion checker (JC) subtask if the JC is active. The EW can also pass events to the data router queue (if the EWSEQNO parameter of the EWTROPTS initialization statement is used), and the EW subtask can act as an event reader.

Subtask initialization consists of building control blocks for the EW subtask, reading and processing the parameter library member, and opening the event data sets.

Subtask mainline logic provides service for the following events:
  • Subtask stop request. Return to caller.
  • Process all events on the EW queue.
Subtask termination closes all open files and returns to the caller.