z/OS JES2 Installation Exits
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Spin phase

z/OS JES2 Installation Exits
SA32-0995-00

Spin processing typically takes place during the execution phase, however because of processing alternatives, which could occur during execution, the spin phase could happen immediately after the execution phase, but always before the output phase. Spin processing consists of processing the unspun queue and building Job Out Elements ($JOEs) for each unspun spool data set.

The output phase follows the spin phase processing and is sometimes confused with the hardcopy phase. Output phase processing scans the job's $IOT chains and if there are $PDDBs representing non-held output, these $PDDBs will be grouped into $JOEs. Held output data sets are grouped into $JOEs which are the elements representing output groups (spool data sets with like characteristics). $JOES are queued by class in the Job Output Table ($JOT) and are ordered FIFO, within priority, by route code.

After all $PDDBs have been assigned output groups the job's $JQE is placed on the hardcopy queue to await print, punch, transmission, or canceling of job output. The following describes the Spin Phase processing.

Table 1. Spin Phase Processing
Step Processing Exit Used
1 After selecting a job from the $SPIN queue, the spin processor scans through the $IOTs which represent unspun data sets. When a unspun $IOT is found, Exit 40 gains control to allow the installation to change the characteristics of the data set before grouping the data set into an output group ($JOE). 40
2 A $#BLD macro is issued to build a $JOE and a $#ADD macro is issued to add the $JOE to the $JOT.  
3 The $QMOD macro queues the job ($JQE) to the OUTPUT queue for processing, and Exit 51 is invoked. 51

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014