Delete a Truename Entry in a Catalog: Example 1

In this example, the truename entry for a data component of an alternate index is deleted. The purpose of this example is to remove the truename of an entry when an error has occurred, leaving the associated base record either inaccessible or missing. Removing the name allows a subsequent DEFINE command to reuse the name without an error caused by a duplicate name situation.
//DELET12    JOB   ...
//STEP1     EXEC  PGM=IDCAMS
//SYSPRINT  DD    SYSOUT=A
//SYSIN     DD    *
     DELETE -
            K101.AIX.DATA
            TRUENAME -
            CATALOG(USERCAT4)
/*
The DELETE command deletes a truename entry that exists without its associated base record. The parameters are:
  • K101.AIX.DATA is the entryname of the alternate index's data component to be deleted.
  • TRUENAME specifies the type of entry to be deleted. When a truename entry is to be deleted, the TRUENAME parameter is required.
  • CATALOG identifies the catalog that contains the entry to be deleted, USERCAT4.