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

JCL TIME parameter in JOB and STEP


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

New User


Joined: 02 Aug 2007
Posts: 5
Location: Pune

PostPosted: Tue Aug 07, 2007 3:20 pm
Reply with quote

We can give time parameter at job level and at step level both at the same time. But what will happen if time parameter specified at step level exceeds total time specified at job level?

I tried with small pgm by specifying 2 sec for step level and 1 sec for job level that pgm executed properly with out any error.

But i tried with small pgm only if pgm is larger than the 1 sec requirement then wat will happen?
Back to top
View user's profile Send private message
balakrishna reddy

Active User


Joined: 13 Jul 2007
Posts: 128
Location: Guntur

PostPosted: Tue Aug 07, 2007 4:54 pm
Reply with quote

hi neha,

Quote:

But i tried with small pgm only if pgm is larger than the 1 sec requirement then wat will happen?


if the time parameter is coded on both job and step as shown below in the example code.
Code:

//SECOND JOB   ,'Balakrishna',TIME=3
//STEP1  EXEC  PGM=C,TIME=2
//STEP2  EXEC  PGM=D,TIME=2



the job is allowed 3 minutes of execution time. Each step is allowed 2 minutes of execution time. Should either step try to execute beyond 2 minutes, the job will terminate beginning with that step. If STEP1 executes in 1.74 minutes and if STEP2 tries to execute beyond 1.26 minutes, the job will be terminated because of the 3-minute time limit specified on the JOB statement.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Aug 07, 2007 5:01 pm
Reply with quote

It's all in the fine manual.

O.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Aug 07, 2007 5:04 pm
Reply with quote

Quote:
But what will happen if time parameter specified at step level exceeds total time specified at job level?


This statement is confusing ! It actually depends on the actual time taken for a step to execute and not the actual parameter specified.

if the time specified in the JOBcard is 2 mins then the job would abend if the job runs for more than 2 mins no matter the value in the STEP.

The TIME parameter specified in the JOB card is for all the steps and that shd be greater than or equal to the total time taken by all the steps to execute.
Back to top
View user's profile Send private message
NehaPathak

New User


Joined: 02 Aug 2007
Posts: 5
Location: Pune

PostPosted: Tue Aug 07, 2007 6:51 pm
Reply with quote

THANX A LOT TO U ALL!!!!
I got the point that the time specified at job level is the time allocated to that total job.

Thanx again!!!
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 To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top