09.07.2015 Views

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ALTER VOLUMEENTRYavailable either physically or logically), you can alternately use RACF orPROTECT=ALL in your JCL to protect the volume during usage.Abbreviation: WPRTNOWRITEPROTECTIindicates that the volume is not write-protected.Abbreviation: NWPRTALTER VOLUMEENTRY ExamplesAltering a Volume Entry: Example 1This example alters the tape library volume entry with volser AL0001.//ALTERVOL JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *ALTER VAL0001 -VOLUMEENTRY -LIBRARYNAME(ATLLIB1) -LOCATION(LIBRARY) -USEATTRIBUTE(SCRATCH) -EXPIRATIONDATE(2000-12-31)/*This command’s parameters are:vvvvvvVAL0001: Specifies the name of the tape volume entry being altered. Thevolume’s volser is AL0001.VOLUMEENTRY: Indicates that an entry describing a single tape volume (that isa cartridge) in a tape library is being altered.LIBRARYNAME: Specifies that this tape volume record is associated with a tapelibrary named ATLLIB1.LOCATION: Specifies that the tape volume will now reside in a tape library slot.USEATTRIBUTE: Specifies that the tape volume is a scratch volume.EXPIRATIONDATE: Specifies an expiration date of 2000-12-31. On that date thedata set on the tape volume will expire; however, because USEATTRIBUTE isspecified as SCRATCH, the expiration date is set to blanks.Altering a VOLUME Entry: Example 2This example alters the entry that describes the VOLUME AL0001.//ALTERVOL JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *ALTER VAL0001 -VOLUMEENTRY -LIBRARYNAME(ATLLIB1) -USEATTRIBUTE(SCRATCH) -MEDIATYPE(MEDIA5) -RECORDING(EFMT1)/*This command’s parameters are:vVOLUMEENTRY: Indicates that an entry describing a single volume (such as acartridge) in a library is being altered.88 z/<strong>OS</strong> <strong>V1R6.0</strong> <strong>DFSMS</strong> <strong>Access</strong> <strong>Method</strong> <strong>Services</strong> <strong>for</strong> <strong>Catalogs</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!