Job Deletion.



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

Re: Job Deletion.

Postby Vineet » Wed Dec 10, 2014 10:44 pm

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
Vineet
 
Posts: 86
Joined: Tue Jun 19, 2007 11:38 am
Has thanked: 0 time
Been thanked: 0 time

Re: Job Deletion.

Postby prino » Wed Dec 10, 2014 10:47 pm

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?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: Job Deletion.

Postby enrico-sorichetti » Wed Dec 10, 2014 11:43 pm

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.
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Job Deletion.

Postby Terry Heinze » Thu Dec 11, 2014 12:41 am

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.
.... Terry
Terry Heinze
 
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 12 times
Been thanked: 11 times

Re: Job Deletion.

Postby steve-myers » Thu Dec 11, 2014 12:42 am

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Job Deletion.

Postby Terry Heinze » Thu Dec 11, 2014 3:19 am

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.
.... Terry
Terry Heinze
 
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 12 times
Been thanked: 11 times

Re: Job Deletion.

Postby vern » Thu Dec 11, 2014 1:12 pm

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.
vern
 
Posts: 14
Joined: Fri Oct 24, 2014 12:40 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Job Deletion.

Postby Terry Heinze » Thu Dec 11, 2014 8:55 pm

It's possible that Vineet is the user who has PDS A.B.C enqueued.
.... Terry
Terry Heinze
 
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 12 times
Been thanked: 11 times

Previous

Return to JCL