You have gotten good advice.  

When you get an error message, you can do an internet search or search the IBM 
Website (www.ibm.com) to see what it means.


So how to determine what is going on?  Here are some steps.

1)  LISTC ENT('your..data..set..name..here') ALL
        If it comes back with DSN NOT FOUND, then there is a problem and the 
physical dataset is probably gone.
2)  Go to ISPF Option 3.4 and enter the dataset name
      When the next panel pops up - scroll using PF11.  As you scroll through 
the 3.4 panels, if all you see is the DSN but no space, extents or other 
details, then all you have is a catalog entry.

Once you have determined the state of the file (it exists or not) - then you 
need to delete it with either

a)  DEL 'your..data..set..name..here' 
    If the dataset is a NON VSAM file this will work
    If the dataset is a VSAM file, then you need to add NOSCRATCH NOPURGE to 
the DEL command.

The actions you need to take is dependent on
1)  What are you deleting - VSAM or NONVSAM?
2)  Whether the file exists or does not exist - Is it only a catalog entry


Once you have answered these questions, you can delete the file with the 
correct subparms on the DEL command.

Lizette

> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of Sai M
> Sent: Friday, May 27, 2016 8:09 AM
> To: [email protected]
> Subject: Not able to delete DSN
> 
> Hi,
> 
> I am not able to delete DSN. I am getting below error.
> 
> ENTRY XXXX.XXXX.XXX.HFS NOT FOUND+
> ** ENTRY XXXX.XXXX.XXX.HFS NOT DELETED
> LASTCC=8
> ** VSAM CATALOG RETURN CODE IS 8 - REASON CODE IS IGG0CLEG-42
> 
> 
> Can some one tell me, how to delete.
> 
> 
> Sai
> 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to