This example creates a volume entry for volume 0A2991.
//CREATVOL JOB ...
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
CREATE VOLUMEENTRY(V0A2991)-
LIBRARYNAME(ATLIB02)-
USEATTRIBUTE(SCRATCH)-
MEDIATYPE(MEDIA7)-
RECORDING(EFMT1)
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.
- USEATTRIBUTE identifies the volume as being a SCRATCH tape.
- MEDIATYPE specifies the media type as MEDIA7.
- RECORDING specifies the recording technology as EFMT1.