z/OS DFSMSdss Storage Administration
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example of a release operation

z/OS DFSMSdss Storage Administration
SC23-6868-01

The following is an example of a release operation on selected sequential and partitioned data sets.
//JOB1     JOB   accounting information,REGION=nnnnK
//STEP1    EXEC  PGM=ADRDSSU
//SYSPRINT DD    SYSOUT=A
//SYSIN    DD    *
 RELEASE INCLUDE(**)  -
   DYNAM(338000)      /* DYNAM ALLOC VOL 338000            */ -
   MINTRKS(10)        /* THERE ARE 10 OR MORE UNUSED TRKS  */ -
                      /* MINSEC NOT SPEC. IT DEFAULTS TO 1 */
/*
Unused tracks of sequential and partitioned data sets on volume 338000 are to be released if both:
  • The number of unused tracks in the data set is greater than or equal to 10.
  • The data set can be extended later if required (MINSEC(1)). This need not be specified, because it is the default.
The above example can be modified as follows to release unused tracks of all sequential and partitioned data sets, other than system data sets, that have any unused tracks and that can be extended:
//SYSIN    DD    *
 RELEASE INCLUDE(**)   -
   DYNAM(338000)       /* DYNAM ALLOC VOL 338000 */
/*
The following is an example of the commands used to release unused space from extended-format VSAM data sets residing wholly or in part on a specific volume, and to release unused space from the data sets’ alternate indexes that reside on any volumes:
//SYSIN    DD    *
 RELEASE INCLUDE(**)  -
  BY(DSORG EQ VSAM)   /* RELEASE ONLY VSAM    */-
  LOGDYNAM(339000)   /* DYN ALLOC VOL 339000 */-
  SELECTMULTI(ANY)    /*EVEN IF MULTIVOL     */-
  SPHERE        /* RELEASE AIXES    */
  /*
To release unused space from all eligible data sets that are cataloged in a particular user catalog, without specifying any volume:
//SYSIN    DD   *
 RELEASE INCLUDE(**)    -
  INCAT(CATALOGA) ONLYINCAT /* ONLY FROM CATALOG */
/* 

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014