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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Delete a Non-VSAM Data Set’s Entry: Example 4In this example, a non-VSAM data set’s entry is deleted. The SCRATCH parameteris the default. A FILE parameter and its associated DD statement are provided toallocate the data set’s volume. In this example, dynamic allocation is not used toprovide catalog or volume allocation. This example applies only to non-VSAMdata sets that have catalog entries.//DELET4 JOB ...//STEP1 EXEC PGM=IDCAMS//DD1 DD VOL=SER=VSER02,UNIT=3380,DISP=OLD,// DSNAME=EXAMPLE.NONVSAM//SYSPRINT DD SYSOUT=A//SYSIN DD *DELETE -EXAMPLE.NONVSAM -FILE (DD1) -PURGE -CATALOG(USERCAT4)/*The DELETE command deletes the non-VSAM data set EXAMPLE.NONVSAM. Itsparameters are:vvvvEXAMPLE.NONVSAM is the entryname of the object to be deleted.FILE specifies the ddname of a DD statement that describes the non-VSAM dataset’s volume and causes it to be mounted. When the data set is deleted, itsDSCB entry in the volume’s VTOC is removed.PURGE specifies that the non-VSAM data set’s retention period or date is to beignored.CATALOG identifies the catalog that contains the entries, USERCAT4.Delete Entries Associated with a Non-VSAM Object from VVDSand VTOC: Example 5The following example shows how to delete entries associated with a non-VSAMobject from the VVDS and VTOC. The purpose of this command is to clean up theVVDS and VTOC when there are residual records as a result of an error.//DELET14 JOB ...//STEP1 EXEC PGM=IDCAMS//DD1 DD VOL=SER=VSER01,UNIT=3380,DISP=OLD//SYSPRINT DD SYSOUT=A//SYSIN DD *DELETE -EXAMPLE.NONVSAM -FILE(DD1) -NVR/*The above DELETE command deletes the NVR associated with a non-VSAM objectfrom the VVDS and its corresponding entry from the VTOC if they exist. Itsparameters are:vvvEXAMPLE.NONVSAM, the name of the non-VSAM object. There must not be aBCS entry <strong>for</strong> this object.FILE, specifies the ddname of a DD statement that describes the volumecontaining the VVDS entry associated with this object.DELETENVR, specifies that only the NVR and its corresponding VTOC entry <strong>for</strong> thisobject are to be deleted.Chapter 20. DELETE 229

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

Saved successfully!

Ooh no, something went wrong!