Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Cancellation of Running Job
Goto page 1, 2  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
AVINASH.SHARMA

New User


Joined: 18 Feb 2013
Posts: 7
Location: INDIA

PostPosted: Tue Feb 26, 2013 3:00 pm    Post subject: Cancellation of Running Job
Reply with quote

In present scenario, sometime it happens that Job A takes much time to execute i.e its execution time conflicts with prod regions timings at which these regions go live.
In present if it happens we manually terminate the job A so that it should not affect prod region.
Example:

Start time of job A is based on the completion of its predecessor job and if it does not complete before 4.55CST. We manually terminate it at 4.55 CST because prod region go live on 5.30CST

Please let us know the possible solutions for it so that we don't require to manually terminate it in case it crosses 4.55CT.

Any suggestions would be highly appreciated.

Thanks,
Avinash
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Tue Feb 26, 2013 3:04 pm    Post subject:
Reply with quote

Maybe it will end normally in the remaining 35 minutes?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Tue Feb 26, 2013 3:33 pm    Post subject:
Reply with quote

The amount of elapsed time a job will take depends upon a great number of factors, including (but not limited to) how many other address spaces (batch jobs, TSO users, CICS regions, started tasks, Unix System Services processes) are running in the LPAR, the CPU utilization, the I/O utilization, and the Workload Manager policies. You could schedule a job to start at 4:55 that cancels the job you want out of the system; if the cancel command failed then the job has completed.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Feb 26, 2013 5:34 pm    Post subject: Re: Cancellation of Running Job
Reply with quote

AVINASH.SHARMA wrote:
Start time of job A is based on the completion of its predecessor job and if it does not complete before 4.55CST. We manually terminate it at 4.55 CST because prod region go live on 5.30CST
Are you trying to say that there is some "test Job" which conflicts with Production resources?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Feb 26, 2013 6:58 pm    Post subject:
Reply with quote

Hello and welcome to the forum,

Suggest you discontinue the practice of cancelling jobs that run "too long". If the job is to be canceled and run later, just schedule the job to run After the problem time?
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Tue Feb 26, 2013 8:55 pm    Post subject:
Reply with quote

Are you asking for an automated way to cancel the job if it's running?

Do you have a scheduler involved, or can you get one involved?

If I had to do what you are talking about, I would schedule a job at 4:55 that checks for the test job, then cancels it if needed. You could have a whole string of job names.

Alternately, I know that Control-M has parms in the schedule that will perform tasks based on time of day. If you run the problem job(s) in the scheduler, then you could have IT start the cancellation at 4:55.

Whatever you do, DON'T run a looping job waiting until 4:55. That will tie up an initiator and CPU cycles. Not to mention it will incur the wrath and scorn of the folks here.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Feb 27, 2013 4:24 am    Post subject:
Reply with quote

Quote:
Not to mention it will incur the wrath and scorn of the folks here.
As well as Your Support people . . .

d
Back to top
View user's profile Send private message
AVINASH.SHARMA

New User


Joined: 18 Feb 2013
Posts: 7
Location: INDIA

PostPosted: Wed Feb 27, 2013 3:35 pm    Post subject:
Reply with quote

PeterHolland wrote:
Maybe it will end normally in the remaining 35 minutes?

We can't as our start job runs at 5.00 CT icon_biggrin.gif . So job A has to complete on 4:55 CT
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Feb 27, 2013 4:11 pm    Post subject:
Reply with quote

AVINASH.SHARMA wrote:
PeterHolland wrote:
Maybe it will end normally in the remaining 35 minutes?

We can't as our start job runs at 5.00 CT icon_biggrin.gif . So job A has to complete on 4:55 CT


So why you are talking about 5.30 in your 1st post?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Feb 27, 2013 4:25 pm    Post subject: Reply to: Cancellation of Running Job
Reply with quote

time to lock the topic icon_question.gif
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Wed Feb 27, 2013 5:19 pm    Post subject:
Reply with quote

He said his region goes live at 5:30. That means the start up deck(s) submit at 5:00 and it takes about a half hour to gather up its skirts and get ready for business.

I do wish he would have answered my question about the scheduler instead of just explaining about the start time though.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Feb 27, 2013 5:42 pm    Post subject:
Reply with quote

Ed Goodman wrote:
He said his region goes live at 5:30. That means the start up deck(s) submit at 5:00 and it takes about a half hour to gather up its skirts and get ready for business.


Right Ed, I didn't consider that. But is taking 30 minutes not a bit long ?
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Wed Feb 27, 2013 6:48 pm    Post subject:
Reply with quote

Seems long to me, but my guess is that's an operational target. So the published 'get out of the water' time is 5:00 and they have 30 minutes to overcome any problems and be active for the users. Problems are probably crashed logs and/or cancelling pesky test jobs that have prod resources held.

Again, I wish Avinash would answer about the availability of a test scheduler.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7228

PostPosted: Wed Feb 27, 2013 7:07 pm    Post subject: Reply to: Cancellation of Running Job
Reply with quote

Isn't the "test" aspect down to Anuj's unanswered question?

Wouldn't the time be better spent on working out a secure way to ensure JOB A completes in a timely manner? If it is a planned part of Production batch operations, it should "fit" within the schedule which allows "whatever" time for availability of user-access to their "online" systems.

Then JOB A will rarely require cancelling for late start, and it will become somewhat moot as to how that is carried out in practice, but almost certainly any Scheduler software will be able to do something to assist.
Back to top
View user's profile Send private message
AVINASH.SHARMA

New User


Joined: 18 Feb 2013
Posts: 7
Location: INDIA

PostPosted: Wed Feb 27, 2013 8:18 pm    Post subject:
Reply with quote

As per your suggestions can the actvity be preformed in Schedular ?
If my job A completes successfully then new job B won't perform anything . In case job A is crossing the threshold i.e 4.55 CT, then job B will cancel the running job A . Pls let me know Robert if I am correct..
Back to top
View user's profile Send private message
AVINASH.SHARMA

New User


Joined: 18 Feb 2013
Posts: 7
Location: INDIA

PostPosted: Wed Feb 27, 2013 8:34 pm    Post subject: Re: Cancellation of Running Job
Reply with quote

Anuj Dhawan wrote:
AVINASH.SHARMA wrote:
Start time of job A is based on the completion of its predecessor job and if it does not complete before 4.55CST. We manually terminate it at 4.55 CST because prod region go live on 5.30CST
Are you trying to say that there is some "test Job" which conflicts with Production resources?

No there is no Test job which is conflicting the production resources.

Job A deletes the rows from various tables and sometimes it crosses the 4.55 CT. In that case we have to manually terminate the job.
Back to top
View user's profile Send private message
AVINASH.SHARMA

New User


Joined: 18 Feb 2013
Posts: 7
Location: INDIA

PostPosted: Wed Feb 27, 2013 8:49 pm    Post subject:
Reply with quote

dick scherrer wrote:
Hello and welcome to the forum,

Suggest you discontinue the practice of cancelling jobs that run "too long". If the job is to be canceled and run later, just schedule the job to run After the problem time?

We can't do beacuse after completion of job A our regions go live.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Feb 27, 2013 8:52 pm    Post subject: Reply to: Cancellation of Running Job
Reply with quote

16 posts and getting nowhere icon_evil.gif

don' t they have an operations/scheduling support in the TS organization icon_question.gif
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Wed Feb 27, 2013 9:13 pm    Post subject: Re: Reply to: Cancellation of Running Job
Reply with quote

enrico-sorichetti wrote:
don' t they have an operations/scheduling support in the TS organization icon_question.gif

Technically, they probably do. However, as seems to be increasingly common judging by the traffic on this and our sister board, it's likely staffed by inexperienced analysts with no knowledge of their environment.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Wed Feb 27, 2013 9:29 pm    Post subject:
Reply with quote

Yes, you are correct. You schedule a job that starts at 4:55. That job will run a command to cancel the OTHER job.

So...do you, or do you not, have access to a scheduler that can run a job at 4:55?

If you do, then we can help you set up the cancel job.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts Syntax for running batch history repo... polymathtarun CA Products 1 Tue Jun 21, 2016 1:51 pm
No new posts Jobs from iseries not running in sequ... lyd All Other Mainframe Topics 4 Mon Jan 18, 2016 1:17 am
No new posts Exclusion of US Holidays in 'Cancella... apandey COBOL Programming 5 Fri Sep 18, 2015 3:34 pm
No new posts Running queries against OLTP Database A_programmers DB2 3 Tue Jul 14, 2015 4:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us