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.

Delete an OAM Collection Name Catalog Entry: Example 16In this example, an OAM non-VSAM collection name entry is deleted from acatalog. A FILE parameter and its associated DD statement are provided to allocatethe volume where the catalog containing the collection name entry is located.//DELET15 JOB ...//STEP1 EXEC PGM=IDCAMS//DD1 DD VOL=SER=VSER01, UNIT=3380, DISP=OLD//SYSPRINT DD SYSOUT=A//SYSIN DD *DELETE -OAM.COLLECTION.NONVSAM -FILE (DD1) -PURGE -N<strong>OS</strong>CRATCH -CATALOG(COLNCAT)/*The DELETE command deletes the non-VSAM collection name entry from thecatalog. Its parameters are:vvvvvOAM.COLLECTION.NONVSAM is the name of the collection name entry in thecatalog.FILE specifies the DD statement within the JCL that locates the volume wherethe catalog containing the collection name entry marked <strong>for</strong> deletion resides.PURGE specifies that the retention period <strong>for</strong> the non-VSAM collection nameentry be ignored.N<strong>OS</strong>CRATCH specifies that only the collection name entry on the catalog bedeleted.CATALOG identifies the catalog where the collection name entry marked <strong>for</strong>deletion resides is COLNCAT. If you are trying to delete SMS-managed entries,you must have RACF ALTER authority.There must be synchronization between the OAM collection name entries in thecatalog and the OAM DB2 Administration Database. Deleting a collection nameentry from the catalog will not delete the corresponding entry from the OAM DB2Administration Database. The above DELETE command should be used inrecovery situations to ensure synchronization between the catalog and the OAMDB2 Administration Database.Delete a Tape Library Entry: Example 17This example deletes a tape library entry. Because the FORCE parameter was notused, the tape library entry ATLLIB1 is deleted only if no tape volume entries areassociated with it.//DELLIB JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *DELETE (ATLLIB1) -LIBRARYENTRY/*This command’s parameters are:v ATLLIB1 is the name of the tape library entry that is to be deleted.v LIBRARYENTRY specifies the type of entry to be deleted.Delete a Tape Volume Entry: Example 18This example deletes a tape volume entry.DELETEChapter 20. DELETE 235

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

Saved successfully!

Ooh no, something went wrong!