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

Doubt on TIME parameter


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

New User


Joined: 20 Feb 2004
Posts: 57

PostPosted: Fri Feb 20, 2004 12:17 pm
Reply with quote

Hi,
I have a doubt on TIME parameter.
I was coded the jcl like the following way.

//timejob JOB ' ',..............,Time=40
//s1 EXEC PGM=p1,Time=20
//s2 EXEC PGM=p2,Timw=30
//


Can anybody tell about the execution of the above JOB.
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 150
Location: Tokyo, Japan

PostPosted: Fri Feb 20, 2004 1:01 pm
Reply with quote

Hi Ravindra,

It means that the job will take maximum of 40 secs/mins depending on unit. If it reaches maximum time limit then it will abend with the error message "Max Time reached".

Regards,
Sandip.
Back to top
View user's profile Send private message
krbabu

New User


Joined: 20 Feb 2004
Posts: 57

PostPosted: Fri Feb 20, 2004 2:28 pm
Reply with quote

that'z correct but i want know about which step is abend? Is the total job will abend are else only the second step will abend?
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 150
Location: Tokyo, Japan

PostPosted: Fri Feb 20, 2004 2:59 pm
Reply with quote

My guess is that the currently executing setp will abend. the output from previous step will remain unaffected(for simple situation of course).

Regards,
Sandip.
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Fri Feb 20, 2004 4:44 pm
Reply with quote

Hello krbabu,

In the example the job is allowed 40 minutes of execution time. each step is allowed 20 minutes of execution time (even though the second step is allowed to execute for 30 mins)

Should either step try to execute beyond 20 minutes, the job will terminate beginning with that step. If STEP1 executes in 19.75 minutes and if STEP2 tries to execute beyond 20.25 minutes, the job will be terminated because of the 40-minute time limit specified on the JOB statement.


Hope this helps,

Regards
Mayuresh Tendulkar
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Fri Feb 20, 2004 9:51 pm
Reply with quote

I had some doubt in this.If first step executes for say some 5 min and if second step need execution for some 32 min,will second step execute though the time parameter is coded as 30 min for that step???

According to me as job step time parm overrides step's time parm it shld execute right.

Thanks and regards
anu
Back to top
View user's profile Send private message
mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1210
Location: India

PostPosted: Sat Feb 21, 2004 12:09 pm
Reply with quote

Dear,

Quote:
According to me as job step time parm overrides step's time parm it shld execute right.


Yes. It's right... Time parm in JOB overrides EXEC parameters.

Quote:
If first step executes for say some 5 min and if second step need execution for some 32 min,will second step execute though the time parameter is coded as 30 min for that step???


Good question...

Step2 will not execute.

A Step with TIME parameter executes only if:

1. Required Time <= (Time limit of the JOB - Time taken by previous steps) and if

2. Required Time <= Time limit coded in that Step
Back to top
View user's profile Send private message
krbabu

New User


Joined: 20 Feb 2004
Posts: 57

PostPosted: Mon Feb 23, 2004 12:16 pm
Reply with quote

Thanks to one and all
Back to top
View user's profile Send private message
rameshvaamshy
Currently Banned

New User


Joined: 19 Aug 2007
Posts: 14
Location: bangalore

PostPosted: Thu Oct 11, 2007 4:25 pm
Reply with quote

check out whether this helps


For a JOB statement TIME parameter of TIME=NOLIMIT or TIME=1440, the system nullifies any TIME parameters on EXEC statements as well as the default TIME values. All steps within the job will have unlimited processor time.

For a JOB statement TIME parameter other than TIME=NOLIMIT or TIME=1440, the system sets the time limit for each step to one of the following:


The step time limit specified on the EXEC statement TIME parameter or the job time remaining after execution of previous job steps, whichever is smaller.

If no EXEC TIME parameter was specified: the default time limit, or the job time remaining after execution of previous steps, whichever is smaller.
Example 1




//FIRST JOB ,SMITH,TIME=2
//STEP1 EXEC PGM=READER,TIME=1
.
.
.
//STEP2 EXEC PGM=WRITER,TIME=1
.


In this example, the job is allowed 2 minutes for execution and each step is allowed 1 minute. If either step continues executing beyond 1 minute, the entire job abnormally terminates beginning with that step.
Example 2




//SECOND JOB ,JONES,TIME=3
//STEP1 EXEC PGM=ADDER,TIME=2
.
.
.
//STEP2 EXEC PGM=PRINT,TIME=2
.


In this example, the job is allowed 3 minutes for execution, and each step is allowed 2 minutes. If either step continues executing beyond 2 minutes, the entire job abnormally terminates beginning with that step. If STEP1 executes for 1.74 minutes and STEP2 tries to execute beyond 1.26 minutes, the job abnormally terminates because of the 3-minute limit specified on the JOB statement.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Oct 11, 2007 4:32 pm
Reply with quote

ramesh,

You reply is bit late (by 3 years). The OP is of 2004 one. Im not sure Ravi still needs this or not.
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 C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
Search our Forums:

Back to Top