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.

DELETEremoved has no data sets in the VVDS. If the catalog entry indicates thereare data sets in the VVDS, the VVDS’s VSAM volume control record(VVCR) is removed and the catalog entry <strong>for</strong> the VVDS is removed.If the volume is mounted and you specify N<strong>OS</strong>CRATCH <strong>for</strong> a VSAMvolume data set (VVDS), the catalog entry <strong>for</strong> the VVDS is removed, andthe catalog back pointer in the VSAM volume control record (VVCR) isremoved.You should specify N<strong>OS</strong>CRATCH <strong>for</strong> the following:vvvvvIf the <strong>for</strong>mat-1 DSCB of a non-VSAM data set has already beenscratched from the VTOC.If you are deleting a non-VSAM data set that was defined with a devicetype named by the user (<strong>for</strong> example, SYSDA) and the device type is notvalid.If the object is defined in a catalog and you want to recatalog the objectin the same catalog.After you convert a volume, the names of catalogs owning data sets onthe volume will still be in the VVCR. Only catalogs that reside on theconverted volume need to have their names in the VVCR. You canremove unneeded catalog names from the VVCR by using DELETEVVDS N<strong>OS</strong>CRATCH with the CATALOG parameter referencing thecatalog to be deleted from the VVCR. For coexistence, an error indicationis still returned if there are VVR or NVRs on the volume <strong>for</strong> thereferenced catalog.N<strong>OS</strong>CRATCH affects the <strong>DFSMS</strong>hsm delete function interaction <strong>for</strong>VSAM base clusters and non-VSAM data sets. It causes the migrateddata set to be recalled because a migrated data set cannot beuncataloged.Abbreviation: NSCRDELETE ExamplesThe DELETE command can per<strong>for</strong>m the following functions.Delete a Truename Entry in a Catalog: Example 1In this example, the truename entry <strong>for</strong> a data component of an alternate index isdeleted. The purpose of this example is to remove the truename of an entry whenan error has occurred, leaving the associated base record either inaccessible ormissing. Removing the name allows a subsequent DEFINE command to reuse thename without an error caused by a duplicate name situation.//DELET12 JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *DELETE -K101.AIX.DATATRUENAME -CATALOG(USERCAT4)/*The DELETE command deletes a truename entry that exists without its associatedbase record. The parameters are:vK101.AIX.DATA is the entryname of the alternate index’s data component to bedeleted.Chapter 20. DELETE 227

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

Saved successfully!

Ooh no, something went wrong!