Page 2 of 2

Re: Job Deletion.

PostPosted: Wed Dec 10, 2014 10:44 pm
by Vineet
Hi Steve,
Thanks for the JCL. It's not working. Error Out with MAXCC=008. Below is the error message.

IKJ56241I DATA SET IS ALLOCATED TO ANOTHER JOB OR USER
IDC0548I ** MEMBER TEST2 NOT DELETED

Thanks

Re: Job Deletion.

PostPosted: Wed Dec 10, 2014 10:47 pm
by prino
Now why would you want to actually do this?

Oh sure, "It's the requirement"

Suspicious git that I am, but my question is: Why do you want to remove the evidence that you submitted the job?

Re: Job Deletion.

PostPosted: Wed Dec 10, 2014 11:43 pm
by enrico-sorichetti
I have seen doing it for some home grown scheduling of user requested jobs..

the dataset would work as some kind of drop box for user requests

deleting the member would clean up the request queue

ugly but it used to work a few decades ago.

Re: Job Deletion.

PostPosted: Thu Dec 11, 2014 12:41 am
by Terry Heinze
Submitting job A.B.C(job1) whose last step is submitting job A.B.C(job2) via INTRDR to delete A.B.C(job1) seems to work if the delete in job2 is done via IDCAMS. As prino says, I would think that you would want to justify deleting the job that was submitted originally.

Re: Job Deletion.

PostPosted: Thu Dec 11, 2014 12:42 am
by steve-myers
Vineet wrote:Hi Steve,
Thanks for the JCL. It's not working. Error Out with MAXCC=008. Below is the error message.

IKJ56241I DATA SET IS ALLOCATED TO ANOTHER JOB OR USER
IDC0548I ** MEMBER TEST2 NOT DELETED

Thanks
I take it you did not bother with the HOLDDS DD statement.

Re: Job Deletion.

PostPosted: Thu Dec 11, 2014 3:19 am
by Terry Heinze
Steve's solution works just fine also. I moved the PARM value down to the SYSTSIN DD * though. So both IDCAMS and TSO work but stay away from IEFBR14 for the delete step unless you want to delete the entire A.B.C PDS.

Re: Job Deletion.

PostPosted: Thu Dec 11, 2014 1:12 pm
by vern
Hi Vineet, ok, got it.
So someone or something is holding the dataset+member (the correct MVS is "enqueue"). What you should do is find out who. How is the job submitted - manually by someone using ISPF ? If so, then they must release the enqueue by PF3 out of the member.

Re: Job Deletion.

PostPosted: Thu Dec 11, 2014 8:55 pm
by Terry Heinze
It's possible that Vineet is the user who has PDS A.B.C enqueued.