I need to delete many files each time I run a particular job.
What I have tried and will like to do is to create a file which contains names of the files that I want to delete.
For example, the input file will look like the following:
Input_File:
GO1.OSCR.D1UNL.GO1DDEV1.GO1SCAM1.PUNCH,DISP=(OLD,DELETE,DELETE)
GO1.OSCR.D1UNL.GO1DDEV1.GO1SCJR1.PUNCH,DISP=(OLD,DELETE,DELETE)
GO1.OSCR.D1UNL.GO1DDEV1.GO1SDNF1.PUNCH,DISP=(OLD,DELETE,DELETE)
GO1.OSCR.D1UNL.GO1DDEV1.GO1SGAJ1.PUNCH,DISP=(OLD,DELETE,DELETE)
GO1.OSCR.D1UNL.GO1DDEV1.GO1SGCT1.PUNCH,DISP=(OLD,DELETE,DELETE)
...
I tried the following JCL which ran fine but did not delete the datasets I am interested in:
//UTL1000U EXEC PGM=IEFBR14
//DD01 DD DSN=GO1.OGADM31.ATEMPFIL,DISP=SHR
//*
//DD01 DD DSN=GO1.OGADM31.ATEMPFIL,DISP=SHR
//*
Can anyone suggest a way to accomplish what I need to get done?
I will greatly appreciate any help that I can get.
Thanks