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


Examples of the FREE parameter

z/OS MVS JCL Reference
SA23-1385-00

Example 1
//EA33  DD  SYSOUT=D,FREE=CLOSE

In this example, the FREE=CLOSE parameter makes JES unallocate this output class D data set when it is closed, rather than at the end of the job step. JES schedules the data set for printing.

Example 2
//EA33  DD  DSNAME=SYBIL,DISP=OLD,FREE=CLOSE

In this example, the FREE=CLOSE parameter makes JES unallocate the data set, dequeue it, and make it available to other jobs as soon as it is closed.

Example 3
//STEP1   EXEC PGM=ABLE1
//DD1     DD   DSNAME=A,DISP=(,PASS),FREE=END
//STEP2   EXEC PGM=ABLE2
//DD2     DD   DSNAME=A,DISP=(OLD,CATLG),FREE=END

In this example, data set A is passed by STEP1 to STEP2. FREE=END on DD statement DD1 is ignored because the disposition is PASS. FREE=END on DD statement DD2 causes data set A to be unallocated at the end of STEP2, when it is also cataloged.

Example 4
//STEP1   EXEC PGM=BAKER1
//DD      DD   DSNAME=A,DISP=(NEW,PASS),FREE=END
//STEP2   EXEC PGM=BAKER2

In this example, data set A is a new data set. Because PASS is specified, FREE=END is ignored and the data set remains allocated.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014