JCL utility to delete specific members?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

JCL utility to delete specific members?

Postby pcs2smf » Tue Mar 23, 2010 11:09 pm

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?
pcs2smf
 
Posts: 7
Joined: Wed Aug 12, 2009 5:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL utility to delete specific members?

 

Re: JCL utility to delete specific members?

Postby Robert Sample » Tue Mar 23, 2010 11:21 pm

How will you know if a PDS member is older than a given date? What is creating the members of the PDS?
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: JCL utility to delete specific members?

Postby pcs2smf » Wed Mar 24, 2010 12:18 am

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?
pcs2smf
 
Posts: 7
Joined: Wed Aug 12, 2009 5:17 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post