I am working in a environment where Batch jobs which triggers in daily basis are A to Z– total 24 jobs(Just an example)
All these jobs create QUESTION.XXXXXXXX.HELPME.G0002V000 (Where XXXXXXX=Jobnames(A_Z)) once the batch process is completed.
Case1: QUESTION.XXXXXXXX.HELPME.G0002V000 will be deleted automatically if the batch run is completed successfully.
Case2: on the other hand, If the job is failed, we need to delete QUESTION.XXXXXXXX.HELPME.G0002V000 manually.
Since, we are having huge number of batch jobs and plenty of them fail on daily basis. It’s really painful to delete all them every day.
I want to create a system which can help me in deleting all the generation files in one PS file or .txt files(failed jobs GDG generations) in one shot like submitting one JCL or executing one REXX component.
Note: I cant code this in my JCL because of few other constrains.