Previous Topic

Next Topic

Book Contents

Book Index

JCL and Allocation Messages for Spool Output

In this example, we will create two reports to spool into two different classes.

JCL Write to the Spool Example

//M90SPOOL JOB ,CARD

//*

//STEP1 EXEC PGM=IEBGENER

//SYSUT1 DD DISP=SHR,DSN=IOAP.PROD.SAMPREPS(REPORT1)

//SYSUT2 DD SYSOUT=P

//SYSIN DD DUMMY

//SYSPRINT DD SYSOUT=*

//*

//STEP2 EXEC PGM=IEBGENER

//SYSUT1 DD DISP=SHR,DSN=IOAP.PROD.SAMPREPS(REPORT2)

//SYSUT2 DD SYSOUT=D

//SYSIN DD DUMMY

   //SYSPRINT DD  SYSOUT=*

The allocation messages from the job show us the JES datasets created to the spool.

JES Allocation Messages

IEF236I ALLOC. FOR M90SPOOL STEP1

IEF237I 192 ALLOCATED TO SYSUT1

IEF237I JES2 ALLOCATED TO SYSUT2

IEF237I DMY ALLOCATED TO SYSIN

IEF237I JES2 ALLOCATED TO SYSPRINT

IEF142I M90SPOOL STEP1 - STEP WAS EXECUTED - COND CODE 0000

IEF285I IOAP.PROD.SAMPREPS KEPT

IEF285I VOL SER NOS= MVS002.

IEF285I JES2.JOB04208.SO000101 SYSOUT

IEF285I JES2.JOB04208.SO000102 SYSOUT

IEF373I STEP /STEP1 / START 00125.1115

IEF374I STEP /STEP1 / STOP 00125.1115 CPU 0MIN 00.16SEC SRB

Parent Topic

JCL Requirements