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 also regularly checks the contents of a submit/release data set. If new data arrives in this data set, the data is read and passed via the data router subtask to the submit subtask for processing. Data in the submit/release data set is either a release-job record or one or more submit-job records.
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.
- Timer expiration. Process the submit/release data set.
- Subtask stop request. Return to caller.
- Process all events on the EW queue.