Example of spool partitioning
- Define five partitions, PARTA, PARTB, PARTC, PARTD, and PARTE
- Define a default partition, PARTA
- Assign the spool data for jobs in job class IMSBATCH to partition PARTB
- Assign the spool data for jobs that will execute on a specific processor (SY2) to partition PARTC
- Assign data in SYSOUT class S to partition PARTD
The //*MAIN statement in the third job shows how the user can request a specific spool partition for output data.
*** JES3 Initialization Statements ***
SPART,NAME=PARTA,DEF=YES
SPART,NAME=PARTB
SPART,NAME=PARTC
SPART,NAME=PARTD
SPART,NAME=PARTE
ENDJSAM
CLASS,NAME=BATCH,DEF=YES
CLASS,NAME=IMSBATCH,SPART=PARTB
*
MAINPROC,NAME=SY1,.......
MAINPROC,NAME=SY2,SPART=PARTC
*
SYSOUT,CLASS=N,....
SYSOUT,CLASS=S,SPART=PARTD,TYPE=(PRINT,DSISO)
*** JOBS ***
//JOB1 JOB ......
//*MAIN ......
//STEPA EXEC .....
//OUT1 DD SYSOUT=N
//OUT2 DD SYSOUT=S
//
//JOB2 JOB ......
//*MAIN CLASS=IMSBATCH,.....
//STEPA EXEC .....
//OUT1 DD SYSOUT=N
//OUT2 DD SYSOUT=S
//
//JOB3 JOB ......
//*MAIN CLASS=IMSBATCH,SPART=PARTE
//STEPA EXEC .....
//OUT1 DD SYSOUT=N
//OUT2 DD SYSOUT=S
//
The text following Part 1 and Part 2 of the figure explains why JES3 writes the spool data to certain partitions.
| Job runs on processor SY1 | JES3 writes the job's spool data to partition | ||
|---|---|---|---|
| Input (SYSIN) (See Note 1) | SYSOUT Class N | SYSOUT Class S (See Note 2) | |
| Job 1 | PARTA | PARTA | PARTD |
| Job 2 | PARTA | PARTB | PARTD |
| Job 3 | PARTA | PARTE | PARTD |
Note:
|
|||
JOB1: JES3 writes the data in SYSOUT class N to the
default partition because:
JOB2: JES3 writes the data in SYSOUT class N to spool partition PARTB because the CLASS statement that defines job class IMSBATCH specifies spool partition PARTB. (The //*MAIN statement assigns this job to job class IMSBATCH.) JOB3: JES3 writes the data in SYSOUT class N to spool partition PARTE because the //*MAIN statement specifies partition PARTE. (A spool partition specified on a //*MAIN statement overrides a spool partition specified on a CLASS statement.) |
|||
| Job runs on processor SY2 | JES3 writes the job's spool data to partition | ||
|---|---|---|---|
| Input (SYSIN) (See Note 1) | SYSOUT Class N | SYSOUT Class S (See Note 2) | |
| Job 1 | PARTA | PARTC | PARTD |
| Job 2 | PARTA | PARTB | PARTD |
| Job 3 | PARTA | PARTE | PARTD |
Note:
|
|||
JOB1: JES3 writes the data in SYSOUT class N to spool partition PARTC because the MAINPROC statement that defines processor SY2 specifies PARTC. JOB2: JES3 writes the data in SYSOUT class N to spool partition PARTB because the CLASS statement for job class IMSBATCH specifies PARTB. (The user assigned the job to job class IMSBATCH.) JOB3: JES3 writes the data in SYSOUT class N to spool partition PARTE because the //*MAIN statement specifies PARTE. (A spool partition specified on a //*MAIN statement overrides a spool partition specified on a CLASS statement.) |
|||