z/OS MVS JCL Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples of the SPIN parameter

z/OS MVS JCL Reference
SA23-1385-00

Example 1
//DD1   DD  SYSOUT=A,FREE=CLOSE,SPIN=UNALLOC

In this example, if you explicitly close or dynamically unallocate the SYSOUT data set, the system makes it available for printing immediately. If you do not explicitly close or dynamically unallocate the SYSOUT data set, the system makes it available for printing at the end of the step. If a JES2 command is issued requesting a spin operation ($TJnnn,SPIN or $TJnnn,SPIN,DD=ddname), the data set is made available for printing immediately.

Example 2
//DD2   DD  SYSOUT=A,FREE=CLOSE,SPIN=NO

In this example, the system makes the SYSOUT data set available for printing at the end of the job, regardless of when it is unallocated or closed.

Example 3
//DD3   DD  SYSOUT=A,FREE=END,SPIN=UNALLOC
If a JES2 command is issued requesting a spin operation ($TJnnn,SPIN or $TJnnn,SPIN,DD=ddname), the data set is made available for printing immediately.

In this example, the SYSOUT data set is unallocated at the end of the step, and made available for printing then. If you dynamically unallocate the SYSOUT data set, the system makes it available for printing immediately.

Example 4
//DD4   DD  SYSOUT=A,FREE=END,SPIN=NO

In this example, the system makes the SYSOUT data set available for printing at the end of the job, regardless of whether the data set is unallocated or closed.

Example 5
//DD5 DD SYSOUT=A,SPIN=(UNALLOC,5K)

In this example, the system splits the data set into 5000 record segments and makes the SYSOUT data set available for printing every 5000 records. Whatever remains in the data set at the end of the STEP is available for printing at the end of step.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014