On Fri, 10 Jul 2009 15:12:51 -0500, Ron <[email protected]> wrote: >I need to to delete a list of tape datasets that were created yesterday. We >use RMM for our Tape management System. > >For example today datasets with HLQ: DBP1.TEST.D09190.T*.** >(Where D* is a date) will be deleted. Tomorrow, DBP1.TEST.D09191.T*.** will >be deleted, etc. >For some reason, the tape(s) on which these datasets reside have an >expiration date of 4 days. The owner of these datasets does not want to >change that, but he does want the day old datasets deleted. > >Now I go out in ISPF 3.4 and manually delete these datasets every day. > >Does anyone have an example of a REXX/JCL that I can run on a daily basis >that will search/find these datasets and delete them, either using RMM or >IDCAMS? > >thanks,
>From what I identified within RMM reference DOC (z/OS V1R9.0 DFSMSrmm Guide and Reference SC26-7404-07), the SEARCHDATASET command/function can generate a list of datasets (using masking characters), also combining the ability to generate a TSO-based DELETE command (add the NOSCRATCH parameter for tape) to expire the tape datasets. A basic REXX EXEC or consider using DFSORT (generate the control stmt) as a batch job, to generate the RMM command to fill-in the desired "date" information in the desired format. Scott Barry SBBWorks, Inc. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

