Example of spool partitioning

The following example illustrates most of the spool partitioning concepts discussed to this point. The JES3 initialization statements in the example:
  • 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
  //
Table 1 and Table 2 refer to the previous example. Part 1 shows to which spool partition JES3 writes the jobs' spool data when the jobs execute on processor SY1. Part 2 shows the same thing when the jobs execute on processor SY2.

The text following Part 1 and Part 2 of the figure explains why JES3 writes the spool data to certain partitions.

Table 1. Spool partitions used in spool partition example PART 1
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:
  1. JES3 writes input (SYSIN) for all jobs to the default spool partition, PARTA, because JES3 always writes input data to the default partition.
  2. The SYSOUT statement that defines SYSOUT class S also specifies spool partition PARTD. Therefore, JES3 writes all data in SYSOUT class S to spool partition PARTD.

JOB1:

JES3 writes the data in SYSOUT class N to the default partition because:
  • The SYSOUT statement that defines class N specifies no spool partition.
  • The MAINPROC statement that defines processor SY1 specifies no spool partition.

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.)

Table 2. Spool partitions used in spool partition example PART 2
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:
  1. JES3 writes input (SYSIN) for all jobs to the default spool partition, PARTA, because JES3 always writes input data to the default partition.
  2. The SYSOUT statement that defines SYSOUT class S also specifies spool partition PARTD. Therefore, JES3 writes all data in SYSOUT class S to spool partition PARTD.

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.)