JES3 allocates devices in three different ways: job setup, high watermark setup, and explicit setup. The type of setup to be used is specified during JES3 initialization, but can be changed for a job by parameters on the //*MAIN statement.
//*MAIN SETUP=JOB
When volumes are no longer needed, they are demounted, if removable, and the devices unallocated, that is, made available for use by another job. If you specify the FREE=CLOSE DD parameter, JES3 unallocates the device when the data set is closed.
If you are using the dequeue at demount facility (early volume release) for multivolume data sets, JES3 unallocates volumes when they are demounted. For information on the dequeue at demount facility, see the TYPE=J OPEN macro option inz/OS DFSMSdfp Advanced Services.
Devices and volumes to be allocated | Tape | Direct access | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Volumes on Devices Set Up Before Execution | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 12 |
Job Steps
|
U | U | A | A | A | A | U | U | A | A | A |
|
A | U | U | U | A | A | U | A | A | A | A |
|
A | N | N | U | A | A | A | U | U | U | A |
|
U | N | N | N | U | U | U | N | N | U | U |
Total Devices Used by the Job for Setup | 6 Tape | 5 Direct Access |
//*MAIN SETUP=HWS
//*MAIN SETUP=THWS
//*MAIN SETUP=DHWS
When the last step that uses a device no longer needs it, JES3 unallocates it.
In Table 2, volumes mounted after STEP1 are indicated by placing the volume number in the box for the step in which it is allocated. For example, Volume 3 is mounted at STEP2.
Devices and volumes to be allocated | Tape | Direct access | ||||
---|---|---|---|---|---|---|
Volumes on Devices Set Up Before Execution | 1 | 2 | 4 | 8 | 9 | 11 |
Job Steps
Volume 1 is mounted at STEP1 and then demounted until needed in STEP4. Volume 8 is mounted for STEP1 and STEP2 and then demounted until needed in STEP4. |
U | U | A | U | U | A |
Volume 3 is mounted at STEP 2. |
U |
U | U | U | A | A |
Volume 10 is mounted at STEP 3. |
A | A | U | U |
U | U |
Volumes 1, 5, 6, 12, and 8 are mounted at STEP 4. Volumes 1 and 8 are mounted on any available device. |
U |
U |
U |
U |
U |
U |
Total Devices Used by the Job for Setup | 3 Tape | 3 Direct Access |
Explicit setup
//*MAIN SETUP=(stepname.ddname,...)
//*MAIN SETUP=(stepname.procstepname.ddname,...)
//*MAIN SETUP=/(stepname.ddname,...)
//*MAIN SETUP=/(stepname.procstepname.ddname,...)
The advantage of explicit setup over high watermark setup is that you can force volumes to stay mounted on devices until they are no longer needed. The disadvantage is that JES3 does not unallocate devices early: JES3 allocates a certain number of devices before job execution and does not unallocate any until the job completes execution. In contrast, with job setup and high watermark setup, JES3 can unallocate devices at the end of any step, if the devices are no longer needed.
In the explicit setup shown in Table 3, four devices are allocated for both tape and disk instead of the three allocated using high watermark setup. The volumes to be explicitly mounted, for example, volumes 1 and 8, are not unallocated and then remounted for the last step.
Devices and volumes to be allocated | Tape | Direct access | ||||||
---|---|---|---|---|---|---|---|---|
Volumes on Devices Set Up Before Execution | 1 | 2 | 3 | 4 | 8 | 9 | 10 | 11 |
Job Steps
|
U | U | A | A | U | U | A | A |
|
A | U | U | U | U | A | A | A |
|
A | A | A | U | A | U | U | U |
Volumes 5, 6, and 12 are mounted in STEP 4. |
U | A | U |
U |
U | A | U |
U |
Total Devices Used by the Job for Setup | 4 Tape | 4 Direct Access |
Altering JES3 Device Allocation: To keep JES3 from allocating devices before the first step and holding them until a later step needs them, break a multiple-step job into several smaller jobs in a dependent job net.