Creating a VOLUME Entry: Example 2

This example creates a volume entry for volume 0A2991.

Start of change
//CREATVOL JOB  ...
//STEP1    EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=A
//SYSIN    DD   *
     CREATE VOLUMEENTRY(V0A2991)-
            (NAME(V0A2991)         -
            LIBRARYNAME(ATLIB02)  -
            LOCATION(LIBRARY)     -
            USEATTRIBUTE(SCRATCH) -
            MEDIATYPE(MEDIA7)     -
            RECORDING(EFMT1))
End of change
The parameters used in this example are as follows:
  • CREATE VOLUMEENTRY indicates that an entry describing a single volume in a library is being created.
  • V0A2991 specifies that the name of the volume entry being created is V0A2991 and the volser is 0A2991.
  • LIBRARYNAME specifies that the name of the library with which this volume record is associated is ATLIB02.
  • Start of changeLOCATION when LIBRARYNAME is specified, location must also be set as LIBRARY, otherwise it will default to SHELF. End of change
  • USEATTRIBUTE identifies the volume as being a SCRATCH tape.
  • MEDIATYPE specifies the media type as MEDIA7.
  • RECORDING specifies the recording technology as EFMT1.