Hi Ron, If you are licensed for DFSMSdss you could use our logical data set DUMP with the DELETE keyword. It can select data sets based on physical characteristics, including creation date as reported in the VTOC. In this case your output dump data set would be a DUMMY DD.
Something like: //STEPxxxx EXEC PGM=ADRDSSU //SYSPRINT DD SYSOUT=A <-- might need to modify that //DDDUMMY DD DUMMY //SYSIN DD * DUMP DELETE DS(INCL(SPXR3V.TEST.**) BY(CREDT, GT, (*,-365))) OUTDD (DDDUMMY) /* I would suggest testing with TYPRUN=NORUN first to make sure DSS is selecting the right set of data sets you want to delete: //STEPxxxx EXEC PGM=ADRDSSU,PARM='TYPRUN=NORUN' Thanks, Robert Gensler DFSMSdss Architecture and Development Tucson, AZ 1-720-349-5211 [email protected] IBM Mainframe Discussion List <[email protected]> wrote on 01/12/2017 02:28:00 PM: > From: Ron Thomas <[email protected]> > To: [email protected] > Date: 01/12/2017 02:28 PM > Subject: delete old datsets > Sent by: IBM Mainframe Discussion List <[email protected]> > > Hi . Could some one let me know how to delete old datasets > SPXR3V.TEST.*say 1 year old old using a job ? I need to get this > scheduled as a monthly process so that storage gets freed. Thanks! > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
