z/OS DFSMS DFM Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Reusable Attribute

z/OS DFSMS DFM Guide and Reference
SC23-6848-00

All VSAM data sets created by DFM are initially reusable. A VSAM data set must be marked reusable before you can use DFM to clear any data set or write to a VSAM ESDS with the stream access method.

You can mark a data set reusable using the IDCAMS ALTER command with the REUSE parameter.

Note:
  1. You must be a local z/OS® user to use the ALTER command. You cannot turn on the reusable attribute using DFM.
  2. If you delete an alternate index file, you must use the ALTER command if you want to make the base reusable again. DFM does not automatically change the base ESDS or KSDS back to reusable.
  3. These restrictions are implemented because it is possible for additional indexes to be defined on z/OS, which are not known to DFM.

Figure 1 is an example of an ALTER command that marks a data set reusable.

Figure 1. ALTER Command that Marks a Data Set Reusable
  //ALTER    JOB   ...
  //STEPA    EXEC  PGM=IDCAMS
  //SYSPRINT DD    SYSOUT=A
  //SYSIN    DD    *
             ALTER -
                VSAM.DFM.DATASET -
                REUSE
  /*
 

For more information, see the ALTER command in z/OS DFSMS Access Method Services Commands.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014