Page 1 of 1

JCL utility to delete specific members?

PostPosted: Tue Mar 23, 2010 11:09 pm
by pcs2smf
I want to execute these commands in batch:
filter changed lt 2010/03/23 (todays date)
S * D

Basically delete all members of a humongous PDS older then todays date. And this would run daily. Is there a utility that can execute this?

Re: JCL utility to delete specific members?

PostPosted: Tue Mar 23, 2010 11:21 pm
by Robert Sample
How will you know if a PDS member is older than a given date? What is creating the members of the PDS?

Re: JCL utility to delete specific members?

PostPosted: Wed Mar 24, 2010 12:18 am
by pcs2smf
By editing the dataset and issuing filter changed lt (todays date), only older members are displayed. S * D then deletes all. I would like to automate this with a batch job. The PDS has members of all jcl run by the company. These members can be edited and rerun if a fail occurs. The actual jcl is locked up. So these members don't have to be around for a long time. Ideas?