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
 

 

Doubt on TIME parameter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Doubt on TIME parameter
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: 151
Location: Tokyo, Japan

PostPosted: Fri Feb 20, 2004 1:01 pm    Post subject:
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    Post subject:
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: 151
Location: Tokyo, Japan

PostPosted: Fri Feb 20, 2004 2:59 pm    Post subject:
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: 238
Location: USA

PostPosted: Fri Feb 20, 2004 4:44 pm    Post subject:
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    Post subject: time parameter
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: 1203
Location: India

PostPosted: Sat Feb 21, 2004 12:09 pm    Post subject:
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    Post subject:
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    Post subject: Reply to: Doubt on TIME parameter
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: 1439
Location: Bangalore,India

PostPosted: Thu Oct 11, 2007 4:32 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm


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