IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

//*MAIN DEADLINE : JOB NOT WAITING TILL DEADLINE


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
manoopatil

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Fri Jan 16, 2009 1:07 am
Reply with quote

Hi,

My requirement is a job should start execution at 2:28 PM on 15/01/2009.

I have JES3 in my shop. Hence I used the Deadline Scheduling parameter for JES3 in the following way.

And I submitted the job at 2:10 PM. However the job completed right away without waiting till 2:28 PM.

What should I do to make sure that the job starts only at the time mentioned DEADLINE parameter.


Code:
//TSBQLFN3 JOB (BQEM),'N S,NOTIFY=&SYSUID,MSGCLASS=7
//*---------------------------------------------------------*
//* SYNCSORT                                                *
//*---------------------------------------------------------*
//*MAIN DEADLINE=(1428,A,011509)


Regards
-Manohar
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 16, 2009 1:40 am
Reply with quote

I don't think JES3 deadline scheduling does what you think it does. From SA22-7551, JES3 Introduction:
Quote:
Deadline scheduling is a way of scheduling jobs by time of day or by week, month, or year. Job priorities remain in force, but as deadlines approach, JES3 increases the priorities, thereby increasing the likelihood the jobs will be processed before a certain deadline.

System programmers must prepare for deadline scheduling with JES3 initialization statements that tell when a priority is to be increased, and by how much. Then application programmers can put deadlines on JES3 control statements they include with the jobs.
Your job met its deadline -- it was complete by 1428. JES3 deadline scheduling (which I've never used so I'm relying on the manual) is a way of increasing the request priority on the input queue to allow the job to be done by the deadline. There's nothing in the manual about the job not starting until the deadline.
Back to top
View user's profile Send private message
manoopatil

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Fri Jan 16, 2009 2:12 am
Reply with quote

Thank you Robert!

I understand its unlikely, still If anybody has some idea of starting a job at specified time thru JCL itself, it will be of great help!

Regards
-Manohar
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 16, 2009 2:21 am
Reply with quote

I found a reference to submitting the job in a hold queue, or with very low priority, and using DEADLINE to bump the priority to get the job run. However, a lot of shops use job class to control priority and therefore could not use DEADLINE anyway.
Back to top
View user's profile Send private message
sanjuhk

New User


Joined: 14 Dec 2009
Posts: 2
Location: India

PostPosted: Fri Jan 08, 2010 6:18 pm
Reply with quote

can any one help me on the same problem . //*MAIN DEADLINE : JOB NOT WAITING TILL DEADLINE
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 08, 2010 6:30 pm
Reply with quote

Did you not read my earlier post? //*MAIN DEADLINE does not force the job to wait until the deadline to start, it tells JES to increase the priority of the job as the deadline gets closer to force it to COMPLETE by the deadline. If you want a job to not start until the deadline, use your scheduling system.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts ICE039A H INSUFFICIENT MAIN STORAGE -... DFSORT/ICETOOL 3
No new posts Cobol program till a given time or fo... COBOL Programming 7
No new posts Extract Data till prev hour DB2 16
No new posts Missing Java main class Java & MQSeries 3
Search our Forums:

Back to Top