Have you considered using IEHPROGM ?
-------------------------------------------------------------------------- Lionel B. Dyck <sdg>< Mainframe Systems Programmer - TRA -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Mark Pace Sent: Thursday, February 08, 2018 2:05 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: [EXTERNAL] Re: Delete dataset catch-22 Yes, I did specify FILE *DELETE MARPACE.GODADDY.CERT FILE(DD1) * IDC3014I CATALOG ERROR IDC3009I ** VSAM CATALOG RETURN CODE IS 102 - REASON CODE IS IGG0CLFM-2 IDC0551I ** ENTRY MARPACE.GODADDY.CERT NOT DELETED IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8 On Thu, Feb 8, 2018 at 2:45 PM, Andrew Arentsen <andrew.arent...@acuity.com> wrote: > Did you specify the FILE when using IDCAMS DEL NVR? > > > //**************************************************************** > //* DELETES NON-CATALOGED DATASETS WITH IDCAMS > //* USE VVR FOR VSAM DATASETS > //* USE NVR FOR SAM DATASETS > //* CHANGE VOLSER TO MATCH VOLUME THAT DATASET RESIDES ON > //**************************************************************** > //STEP1 EXEC PGM=IDCAMS > //SYSPRINT DD SYSOUT=* > //FILE2 DD UNIT=SYSDA,VOL=SER=TSO901,DISP=OLD > //SYSIN DD * > DEL ('DSZZ005.STT00035.VIALOG') NVR FILE(FILE2) > > > Andrew Arentsen > Senior Mainframe Systems Engineer > > > > > From: "Mark Pace" <pacemainl...@gmail.com> > To: IBM-MAIN@LISTSERV.UA.EDU > Date: 2018-02-08 13:39 > Subject: Delete dataset catch-22 > Sent by: "IBM Mainframe Discussion List" <IBM-MAIN@LISTSERV.UA.EDU> > > > > I'm trying to delete a dataset that is not cataloged any longer. I'm > not sure why it is not in a catalog, but it is not. I've tried to > re-catalog the dataset, but it doesn't catalog. > > So I have tried to every combination of IDCAMS DELETE I can think of. > NONVSAM > NVR > etc.. > > All return > ** VSAM CATALOG RETURN CODE IS 8 - REASON CODE IS IGG0CLEG-42 - > Dataset not found. > > So I tried IEHPROGM > SCRATCH DSNAME=MARPACE.GODADDY.CERT,VOL=3390=STDL09,PURGE > > IEC614I SCRATCH FAILED - RC 008, DIAGNOSTIC INFORMATION IS (0406001E), > STEP010,STDL09,MARPACE.GODADDY.CERT > > 0406001E - Verification of SMS flags failed; caller indicates the > data set is not cataloged, but the *FMT1 DSCB indicates the data set > is cataloged* > > So I have no idea how to remove this dataset, IDCAMS won't do it > because it's not in a catalog, and IEHPROGM won't do it because it > thinks it is in a catalog. > > Anyone have a suggestion? > > Thank you. > > > > -- > The postings on this site are my own and don’t necessarily represent > Mainline’s positions or opinions > > Mark D Pace > Senior Systems Engineer > Mainline Information Systems > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > > > > ********************************************************************** > This e-mail is confidential. If you are not the intended recipient, > you must not disclose or use the information contained in it. If you > have received this e-mail in error, please tell us immediately by > return e-mail and delete the document. > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- The postings on this site are my own and don’t necessarily represent Mainline’s positions or opinions Mark D Pace Senior Systems Engineer Mainline Information Systems ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN